Re: Image Converter needed
Re: Image Converter needed
- Subject: Re: Image Converter needed
- From: Bernard Bernu <email@hidden>
- Date: Mon, 17 Jan 2005 18:04:32 +0100
Have you tried the unix command "convert" which is powerfull to convert
image from format to format.
you can do
convert file.pdf to file.gif
Bernard
Le 17 janv. 05, à 16:43, Barry Wainwright a écrit :
On 17/1/05 3:29 pm, "Mark Butcher" <email@hidden> wrote:
On Jan 17, 2005, at 5:24 AM, Barry Wainwright wrote:
Can anyone point me at a shell script or scripting addition that can
convert
a pdf image file to GIF, PNG or TIFF format?
I now I could use GraphicConverter or similar, but I'm looking for
something
that is portable and likely to be found on any machine (or can be
easily
distributed with the script)
Have you looked at Image Events that's built into OS X? I've never
used
it, but open its dictionary in Script Editor & take a look.
MarkB
Yes, I took a look at that...
Application "Image Events" leads me to this bit of code:
tell application "Image Events"
set theImage to open file (tempfile as string)
save theImage as PNG in file outputFile without icon
close theImage
end tell
This works fine, as does "…as JPEG…", "…as BMP…" and all the 8
supported
file types. Unfortunately, it doesn't allow me a GIF format :(
Still, I should be able to work round it using .PNG.
Thanks :)
--
Barry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden