MSFN Forum: Resizing 6,200 png's? - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Resizing 6,200 png's? Rate Topic: -----

#1 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,326
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 August 2011 - 04:27 AM

I need to resize 6,200 png images (Yes SIX THOUSAND) from 128x128 to 32x32

Any suggestions?

I have tried a couple apps but they all crash or loose transparency. :(


#2 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,457
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 28 August 2011 - 04:53 AM

View PostKelsenellenelvian, on 28 August 2011 - 04:27 AM, said:

I need to resize 6,200 png images (Yes SIX THOUSAND) from 128x128 to 32x32

Any suggestions?

I have tried a couple apps but they all crash or loose transparency. :(


Post a single sample image.

In any case unless you teel us what you ALREADY used and that didn't work this is gonna become a guessing game, you know, like:

Quote

try this:
xxxxxxxx

Quote

Naah, I already tested it.


I would personally use imagemagick, first thing:
http://www.imagemagi...cript/index.php

jaclaz

This post has been edited by jaclaz: 28 August 2011 - 04:59 AM


#3 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,981
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 28 August 2011 - 05:02 AM

IrfanView has a batchconverter/resizer included.

This post has been edited by MagicAndre1981: 28 August 2011 - 05:02 AM


#4 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,457
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 28 August 2011 - 07:23 AM

You see:

View PostMagicAndre1981, on 28 August 2011 - 05:02 AM, said:

IrfanView has a batchconverter/resizer included.


fake_Kelsenellenelvian said:

Naah, I already tested it.


;)

:lol:

jaclaz

#5 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,399
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 August 2011 - 08:12 AM

Photoshop can definitely do this (resize, preserve transparency, etc) in batch mode, and it's pretty easy to use too. You create an action (there's a record button for that) that resizes & saves the pic. Then you go File > Automate > Batch and select your action. Very much like this.

If you don't have Photoshop then I'd try imagemagick first.

Photoshop makes it easy to automate more complex things with reusable actions and what not, but imagemagick should easily handle this simple stuff.

#6 User is offline   allen2 

  • Not really Newbie
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,737
  • Joined: 13-January 06

Posted 28 August 2011 - 09:27 AM

Imagemagick is definitely a good choice if you want to script image manipulation.

#7 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,326
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 August 2011 - 05:19 PM

Tried:

Photofiltre
Some odd batchfile converter (Tiny little no install scripter thing Failed miserably)
fotoresizer.- Works ok but crashesz out after like 100

Can't quite get the hang of Imagemagick.

SAMPLE:

This post has been edited by Kelsenellenelvian: 28 August 2011 - 05:24 PM


#8 User is offline   iamtheky 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 866
  • Joined: 11-November 08

Posted 28 August 2011 - 06:35 PM

here is the autoit code to do so, runs pretty quick. It will dump all the resized images into the directory you run the script from. 98% of the credit goes to the authors of the functions I just drove.

Edit: added spoiler tags to avoid the WOT

Spoiler

This post has been edited by iamtheky: 28 August 2011 - 06:56 PM


#9 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,326
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 August 2011 - 07:01 PM

While your script worked SUPER nicely, transparency was not maintained. :(

This post has been edited by Kelsenellenelvian: 28 August 2011 - 07:01 PM


#10 User is offline   iamtheky 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 866
  • Joined: 11-November 08

Posted 28 August 2011 - 07:03 PM

that sounds like a fun problem, ill post back if i find a workable solution. Other than that, it is the intended effect?

#11 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,326
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 August 2011 - 07:07 PM

Hell yeah.

#12 User is offline   dannyict 

  • Group: Members
  • Posts: 6
  • Joined: 13-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 August 2011 - 10:57 PM

did you try AnyPic Image Resizer Pro ?

#13 User is offline   allen2 

  • Not really Newbie
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,737
  • Joined: 13-January 06

Posted 28 August 2011 - 11:36 PM

With Imagemagick:
Pathtoimagemagickbinaries\mogrify.exe -resize 32x32 -path C:\thumbs C:\images\*.png

Other options of imagemagick that you don't need (you'll loose transparency) to make thumbnails.

This post has been edited by allen2: 28 August 2011 - 11:39 PM


#14 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,326
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 29 August 2011 - 12:18 AM

View Postallen2, on 28 August 2011 - 11:36 PM, said:

With Imagemagick:
Pathtoimagemagickbinaries\mogrify.exe -resize 32x32 -path C:\thumbs C:\images\*.png

Other options of imagemagick that you don't need (you'll loose transparency) to make thumbnails.



SUPER!

That got it!

Thank you muchly!

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy