Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
could you suggest me a cool way to convert thousand images ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Thu Apr 17, 2008 4:56 pm    Post subject: could you suggest me a cool way to convert thousand images ? Reply with quote

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
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu Apr 17, 2008 5:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2674
Location: here, there or in transit

PostPosted: Thu Apr 17, 2008 6:55 pm    Post subject: Re: could you suggest me a cool way to convert thousand imag Reply with quote

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
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Thu Apr 17, 2008 9:36 pm    Post subject: Reply with quote

thank u a lot =)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum