top_left top_right
bottom_left
Next Event: Unknown | Forum Rules | QGL Website | Event Registration
openFolder AusForums.com
iconwatfolderLineopenFolder LANs
iconwatfolderLineopenFolder QGL
iconwatfolderLineopenFolder QGL Forum
Author
Topic: mass flipping of .jpg's Program ?
FaceMan
Posts: 353
Location: Brisbane, Queensland
Ive got around 24 images i want to rotate.
Is there a program that can do them all in one action.
Like a batch command ?
system
--
Eds
Posts: 8670
Location: Brisbane, Queensland
ACDsee
sleepy
Posts: 774
Location: Sunshine Coast, Queensland
NA NA NA NA NA NANA!!!
Tremble
Posts: 14
Location: Brisbane, Queensland
irfanview can also do this.
parabol
Posts: 5100
Location: Brisbane, Queensland
ACDsee

lol what a joke.

Irfanview ftw.
Insom
Posts: 2755
Location: Brisbane, Queensland
i use "rota"

does the lossless jpeg rotate which is handy
Raven
Posts: 3250
Location: Melbourne, Victoria
Photoshop. Corel Script. Whatever. Most decent apps will have a 'batch' function of some kind.
Pinky
Posts: 378
Location: Melbourne, Victoria

ImageMagick ftw

Once upon a time I would write a decent batch file with a loop - but now I use the lazy method (assume Windows):

1. Do a 'dir' into a file:
c:\directory\>dir *.jpg > file.txt
2. Edit the file with a text-editor with column-editing ability (e.g., Ultra-edit)
3. Enable column editing and delete all the crap from file.txt so you just have the filenames
4. Select before every row and type the command to rotate before all the filenames:
convert -rotate 180
5. Rename file file.bat and run it

Anyone that does it any other way is doing it wrong. Amen.

http://img104.imageshack.us/img104/4900/flyingdoingitwronglv7.jpg
Nathan
Posts: 3063
Location: Canberra, Australian Capital Territory

ImageMagick +1 , its entire purpose is tasks like that.
TicMan
Posts: 4040
Location: Melbourne, Victoria
c:\directory\>dir *.jpg > file.txt
2. Edit the file with a text-editor with column-editing ability (e.g., Ultra-edit)
3. Enable column editing and delete all the crap from file.txt so you just have the filenames


Or use "dir /b *.jpg > file.txt" and save 2 steps!@
trog
AGN Admin
Posts: 25847
Location: Brisbane, Queensland

you can sort of do it in one line like:

for %a in (*.jpg) do convert.exe -rotate 180 %a %a-2.jpg

The problem with that is you'll end up with filenames like "image0001.jpg-2.jpg" which sucks. A quick Google indicates you might be able to do it properly though if you RTFM.
thermite
Posts: 772
Location: Brisbane, Queensland
I have a tool on my site to do this. It uses ImageMagick and PHP GD to do it's thing though so you may as well just go straight for ImageMagick.
Pinky
Posts: 382
Location: Melbourne, Victoria

for %a in (*.jpg) do convert.exe -rotate 180 %a %a-2.jpg

I used to Google and work out how to write loops like this. Then I realised that it's much much quicker to use a column editor and do it the simple way without any research. The reason is because you do it so little you just forget batch/shell syntax and always have to look it up.
trog
AGN Admin
Posts: 25848
Location: Brisbane, Queensland

for %a in (*.jpg) do convert.exe -rotate 180 %a %a-2.jpg
I used to Google and work out how to write loops like this. Then I realised that it's much much quicker to use a column editor and do it the simple way without any research. The reason is because you do it so little you just forget batch/shell syntax and always have to look it up.
Yeh, I'd use Irfanview for things like this without a second thought
Persay
Posts: 5413
Location: Brisbane, Queensland
I reckon in the time you spent typing this thread and waiting for replies, you could have easily rotated them all manually.
thermite
Posts: 779
Location: Brisbane, Queensland
x > 1
FaceMan
Posts: 357
Location: Brisbane, Queensland
Been playing around with photosynth.
trying to create a 3d rotational image from a 2d image.
mooby
Posts: 4488
Location: Brisbane, Queensland
photosynth should pick up the rotation.
tequila
Posts: 577
Location: Sydney, New South Wales
# mogrify -rotate 90 *.jpg

^ imagemagick on linux / bsd etc
mission
Posts: 4545
Location: Brisbane, Queensland
I reckon in the time you spent typing this thread and waiting for replies, you could have easily rotated them all manually.


Exactly what my response was going to be. 24 isn't that many.
FaceMan
Posts: 358
Location: Brisbane, Queensland
I actually used the 24 part images unrotated and used 4 full image pics 3 rotated.

I cant get the image to sit like as a floor and rotate it.
it only shows as like a Wall.

Any Photosynth users here ?
are there additional viewing controls other than the 6 shown in the top right hand corner ?

Its a real pain that you have to upload the pics before you can see it.
Takes so long with our crap upload speeds.

last edited by FaceMan at 16:56:02 15/Jan/09
system
--
Not a new post since your last visit.
New Post Since your last visit
Back To Forum
Advertise with Us | Privacy Policy | Contact Us
© Copyright 2001-2026 AusGamers Pty Ltd. ACN 093 772 242.
Hosted by Mammoth Networks - Australian VPS Hosting
Web development by Mammoth Media.