AutoHotkey Community

It is currently May 27th, 2012, 10:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: February 2nd, 2008, 6:33 am 
Hello there -- I am searching for a script that will help me effectively and cleanly resize a PNG image. I couldn't find anything in this group already posted that will do this except for some external apps. Can someone please help me with this problem if this can be solved the 'AHK-Way'? :) Thank you in advance. Have good upcoming weekend.


Report this post
Top
  
Reply with quote  
PostPosted: February 2nd, 2008, 5:52 pm 
Offline

Joined: December 14th, 2005, 3:08 pm
Posts: 219
Simon. wrote:
Hello there -- I am searching for a script that will help me effectively and cleanly resize a PNG image. I couldn't find anything in this group already posted that will do this except for some external apps. Can someone please help me with this problem if this can be solved the 'AHK-Way'? :) Thank you in advance. Have good upcoming weekend.


You need to call an external program that resizes it.

Say, IfranView as its free or use an imagemagick program.

Code:
i_view32.exe c:\*.jpg /resize=(500,300) /aspectratio /resample /convert=d:\temp\*.png 

Make the above code a Runwait command

Why would anyone expect AHK do this?

You're best bet is to find a OS call that could do it. But I doubt Windows supports png.

_________________
Stuart Halliday


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2008, 7:20 pm 
Hello! The issue with those two utilities is one cannot be used for commercial purposes, and the other does not support beyond 16-bit images. I am looking for something more open and free basically.... but maybe someone can shake some sense into me on how to do this right. I ran across something called libpng... but I don't know if that would help me to perform PNG resizes.... and would have no clue how to implement. Anyone how there know how to achieve the goal from my original post? :) I just want to work with PNG's but open to any other solutions without too much heavyweight backend if possible (and GNU license for third-party tools).... a DLL + some script would be cool, but open to suggestions or even a tool if it works.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2008, 9:38 pm 
With GDI+ you can resize png files and much more.
It is part of the OS,for me it is the natural choice.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2008, 9:55 pm 
Oh oh oh, please someone show me the GDI adaptation of this! ;)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2008, 10:03 pm 
Run a search , there are some scripts calling GDI+ functions here.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2008, 10:58 pm 
I did a pretty thoughtful search, .... I think I see some tidbits using the GDI technique .... but maybe you can provide a link or two to a starting point to where I might delve into research on this topic. Thank you so much for re-aligning my mind to this answer. :)

Best wishes


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, chaosad, specter333, Yahoo [Bot] and 59 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group