View previous topic :: View next topic |
Author |
Message |
ddc Guru
Joined: 29 Aug 2006 Posts: 525
|
Posted: Thu Apr 17, 2008 4:56 pm Post subject: could you suggest me a cool way to convert thousand images ? |
|
|
hi,
I have got thousand and thousand of .gif images that i should convert into .png
could you suggest me a cool way (application) to do this ?
thank U =P
p.s.
is there a way to convert and resize ? (scaling 1:2) |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Thu Apr 17, 2008 5:03 pm Post subject: |
|
|
the utility convert (part of the package media-gfx/imagemagick) _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Thu Apr 17, 2008 6:55 pm Post subject: Re: could you suggest me a cool way to convert thousand imag |
|
|
ddc wrote: | I have got thousand and thousand of .gif images that i should convert into .png
...
is there a way to convert and resize ? (scaling 1:2) |
Using ImageMagick as nixnut mentioned, this would do the trick: Code: | while read img; do
convert "$img" -resize 50% "${img%.gif}.png"
done < <(find /path/to/images -name '*.gif') | That will create image-name.png alongside image-name.gif throughout an entire hierarchy of directories beneath /path/to/images, with the PNGs scaled to 50% the size of the GIFs. _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
|
ddc Guru
Joined: 29 Aug 2006 Posts: 525
|
Posted: Thu Apr 17, 2008 9:36 pm Post subject: |
|
|
thank u a lot =) |
|
Back to top |
|
|
|