Thread maximum width size image: How do I set a maximum width size in per (5 answers)
Opened by Gast at 2007-07-10 10:17

renee
 2007-07-10 12:46
#304 #304
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Do you want to generate thumbnails or restrict the size with HTML?

If you want to use HTML, you can use the CSS statements "width" and "max-width". The latter is CSS 2.0 and isn't supported by older browsers.

<img src="..." style="width: 350px; max-width: 300px" />

You have to add these information to your template.

If you want to generate thumbnails I would recommend CPAN:GD::Image::Thumbnail and CPAN:Image::Magick::Thumbnail
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread maximum width size image: How do I set a maximum width size in per