pictures...
Moderator: General Moderators
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
pictures...
anyone ever had to convert 500 + pictures from completely unphotoshopped to something that can be presented in tab size on the web? oh my life sucks..
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
it depends entirely on the original size of the image. I use GD to just resize the image and create a thumbnail which I then turn to a hyperlink that opens the full size picture.
If my original images are ~640x480, it whips through them fairly quickly. As soon as I start getting into the 1900+x1500+ range, it takes a while to chew through them all.
set_time_limit() is your friend
If my original images are ~640x480, it whips through them fairly quickly. As soon as I start getting into the 1900+x1500+ range, it takes a while to chew through them all.
set_time_limit() is your friend
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
Make a photoshop action and you won't have to write any scripts.
imagemagick would also be much faster to code out then GD (unless you have something ready)
depending on settings
+profile will get rid of any image headers added by cam or whatever
-resize will bring it down to desired size
However, if you need to do brushing etc, then photoshop actions will be the best choice since you can record a macro then execute that macro upon all the images in folder.
imagemagick would also be much faster to code out then GD (unless you have something ready)
depending on settings
Code: Select all
command line
/usr/local/bin/mogrify +profile "*" -resize 320x240! /home/path/to/source /home/path/to/thumb;
php
exec("/usr/local/bin/mogrify +profile \"*\" -resize 320x240! /home/path/to/source /home/path/to/thumb;");-resize will bring it down to desired size
However, if you need to do brushing etc, then photoshop actions will be the best choice since you can record a macro then execute that macro upon all the images in folder.
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
I'd second ~wtf and suggest a Photoshop action. You can then throw that action in a batch process, sit back and wait. You can do any colour correction or blurring/sharpening you need in that action as well.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm