So the question is ... how should I calculate it? Say I have a 1024x768 screen and my image is larger (a rectangle of say 1900x1200). I want to avoid letterboxing at all costs. So basically: the new image HAS to fit the minimum dimensions but can go over in height or width, doesn't matter which.
Thanks Fred - you're always a great help. :-) On Sun, Mar 29, 2009 at 5:48 PM, Fred Weinhaus <[email protected]> wrote: > > I believe the documentation is in error! The ''<", is supposed to > work if you want to expand an image, not reduce it, to my knowledge. > > > > The docs says: > > widthxheight< > Change dimensions only if both specified dimensions exceed image > dimensions. > > but should say > widthxheight< > Change dimensions only if both specified dimensions DO NOT exceed > image dimensions. > > > Lanczos is probably best for minimizing. Anthony believes Mitchell is > better for maximizing. > > See > > http://www.imagemagick.org/Usage/resize/#filter_windowed > http://www.imagemagick.org/Usage/resize/#filter_cubics > > > > >Some help would be wonderful, the help files/references are usually really > >good for solving this quickly, but I can't seem to find a proper solution > >myself. The right push would be nice :-) > > > >On Sat, Mar 28, 2009 at 3:41 PM, David Di Biase <dave.dibiase at > >gmail.com>wrote: > > > >> Hi there, > >> > >> > >> I'm writing a script to pump random images to my users browsers (Flash > >> application). I'm doing this in PHP and converting usually 1k-2k image > files > >> on the fly to a standard set of monitor sizes then caching them (to not > kill > >> my server). This is the original line I was using: > >> > >> shell_exec("convert {$file} -filter Lanczos -quality 50% -resize > >> '{$browser[1]}x{$browser[2]}<' '{$file_generated}'"); > >> > >> Say I set my dims to 1024x768 the file generated is ending up as > 1900x1200 > >> for some reason. My goal is to resize an image within the minimum set > >> dimension and keep the aspect ratio as is. > >> > >> The other question I have is, what's the best resize filter for large > >> images (of usually TIFF format)? I'm using Lanczos at the moment but I > was > >> wondering if there was something better. > >> > >> Thanks, > >> > >> Dave > >> > _______________________________________________ > Magick-users mailing list > [email protected] > http://studio.imagemagick.org/mailman/listinfo/magick-users > _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
