pictures...

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

pictures...

Post by Charles256 »

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..
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

yes
:)
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

does it take forever? or is it just me doing it the most innefficient way possible?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

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 8)
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

not an option.the pictures have to be brushed up first :-/
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

so brush them up then use GD, to "convert" them.

if you have to brush them up though, you may as well just save a copy as thumbail size then move on to the next 8O

I thought, based on your first post, that you weren't manipulating them prior to "posting" them on the web....
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

irfanview batch processing.. ;) I've been told you can do pretty nasty stuff with imagick too ;)
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

yep.which is why this takes forever....
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

Post by wtf »

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

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;");
+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.
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

timvw wrote:irfanview batch processing.. ;)
Cripes, you beat me to it! IrfanView rules.
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

The only thing I don't like about Irfanview is that it doesn't handle transparent PNG's made by Firefox correctly and doesn't antialias the pngs either... Firefox does a much better job, sadly.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

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.
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

May I ask 'why'?
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

BTW, that photoshop action is doing wonders:-D granted it saves all the JPEG's with the addition of "copy" to the name for some retarded reason but i can go back and delete that later.real small deal.thanks
Post Reply