|
From: | Jonathan Kulp |
Subject: | Re: png cropping |
Date: | Thu, 18 Sep 2008 23:54:11 -0500 |
User-agent: | Thunderbird 2.0.0.16 (X11/20080724) |
I think we've officially beat this thread to death and now have a nice script to show for it. Thanks for the collaboration! It's the most fun I've had in a while. Now if I can just get my head around the code you wrote I'll be doing something...
Best, Jonathanp.s. now that we have a tool with a version number, I might try learning how to write a brief manpage for it. Good idea?
Patrick Horgan wrote:
Jonathan Kulp wrote:it would have to be the same as the input from the command line, i.e. -f=jpeg or -f=gif---I don't have a clue why it would fail, though with our weird crossing of versions I don't know which version you're using. I put a version in this one, and if you specify -v it will tell you the version and quit. I fixed the defaults as you asked, and put in defaults for N 72 and png, (and if they pick transparency a default of png as well). If the command line args still don't work please let me know. They work here. My experience is that whenever I'm sure I've tested everything there are still many bugs, so please let me know:)Hi Patrick,I've been running your script trying to use the command-line arguments, and something's happening with the format argument. I specify it with an argument, but then I still get prompted for format. I might not be doing the flag right. I've tried it with -f=jpeg, -f=JPEG, -fJPEG, and I think that's it. I'll copy the terminal output below so you can see. On this example I use -fGIF and while it doesn't make the script fail, it does still ask me for a format. Am I specifying the format wrong?BTW, in the script I attached to the last email, you'll notice that with transparent background you have a choice between either png or gif--it's not forced to png. Is there a way to work this option into your version?Yep, fixed. Patrick
-- Jonathan Kulp http://www.jonathankulp.com
[Prev in Thread] | Current Thread | [Next in Thread] |