coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: leemax on August 03, 2008, 08:31:36 AM

Title: How to define a size 320x480 for intermediate pictures using IM
Post by: leemax on August 03, 2008, 08:31:36 AM
Like the Topic, I hope the intermediate pictures not just resize to Max width or height,
but "Command line options for ImageMagick" can control thumb only.
Title: Re: How to define a size 320x480 for intermediate pictures using IM
Post by: Stramm on August 03, 2008, 08:55:58 AM
I do not understand what your question is.
Title: Re: How to define a size 320x480 for intermediate pictures using IM
Post by: leemax on August 03, 2008, 09:51:47 AM
sorry, I make a wrong.
this is my site : http://www.tootoo8.com
a iPhone wallpaper site, user can upload pictures. But the size(pixel) not fit the iphone wallpaper size(320X480px)

so I open "Create intermediate pictures" option and at "Command line options for ImageMagick"  add " -gravity center  -crop 320x480+0+0"
and then I solved the prolblem: create 320X480px intermediate pictures.

But, originally, I used the "Command line options for ImageMagick"  add " -gravity center  -crop 62x62+0+0" to create the thumbnails by 62X62px size.
Now, I open "Create intermediate pictures" option, how can I creat 62X62px thembnail?
Title: Re: How to define a size 320x480 for intermediate pictures using IM
Post by: Stramm on August 10, 2008, 01:24:57 PM
The commandline option are valid for all resized images. It doesn't matter if they are intermediate images or thumbs.
The modpack contains a cropping function just for the thumb. But I think with some coding you could enhance it to crop intermediates as well...