Posts: 9
Threads: 1
Joined: Feb 2010
2010-02-15, 03:53:26
(This post was last modified: 2010-02-15, 04:00:26 by linden.)
scenario
upload 800 pixels (long size) , make a square crop (area of interest is 460x460), but need final thumb size to be 150x150
I would imagine the solution is to have GD re size right after cropping before saving. I wish I know PHP well enough to do this. Can someone please help me?
Posts: 1,848
Threads: 86
Joined: Aug 2009
so you want it to make two thumbnails everytime you upload one image?
-
Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Posts: 9
Threads: 1
Joined: Feb 2010
2010-02-15, 17:25:56
(This post was last modified: 2010-02-15, 17:29:48 by linden.)
Hi Chris
I just want GD, after cropping, to auto resize the thumb to a desire width before saving the file
For example
Maybe input box is not needed. have "desire thumb width" in php prefernece/config is fine.
Posts: 19
Threads: 5
Joined: Feb 2010
It could be my Caffeine high speaking, but GS already creates 2 Thumbnails for every image uploaded. It works off width but keeps proportions intact. So you have data/thumbs/thumbsm.imagename.jpg (the smaller version with a max width of 60px and data/thumbs/thumbnail.imagename.jpg (the larger thumbnail with a max width of 200px). Putting an option in settings to modify this shouldn't be that hard. I might look in to it as i have ran out of idea's for plugins.
Posts: 1,848
Threads: 86
Joined: Aug 2009
data/thumbs/thumbnail.imagename.jpg width can be set in /root/gsconfig.php
data/thumbs/thumbsm.imagename.jpg is used for the upload.php when you choose 'Images' from the dropdown
-
Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Posts: 9
Threads: 1
Joined: Feb 2010
currently /root/gsconfig.php setting (size 200) is not being use if you start cropping
Thnx Jamie
Thnx Chris