• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating file from PICT Resource
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating file from PICT Resource


  • Subject: Re: Creating file from PICT Resource
  • From: Pier Kuipers <email@hidden>
  • Date: Fri, 8 Jun 2001 09:49:15 +0100

I am trying to write a script that will generate a thumbnail image from any given image file without actually opening the original file. This is important, since the script will run as a CGI on a web server, where it may need to create a preview for a 50MB image.

Isn't that a job for Clip2Gif ?

Thanks Malcolm, you're right. I didn't realise Clip2Gif is fully scriptable.

copy that pict resource to the clipboard, then use this code:

tell application "GraphicConverter"
activate
new image from clipboard
end tell

It will create a new window with the image, then all you have to do is
save the file.

Thank you too, Michelle. However, I am trying to avoid using windows, need to do everything in the background, in other words, pure Applescript.
Looks I'll end up using GraphicConverter to create the PICT resource (icon), Clip2Gif to create a new JPEG from the PICT, and ImageMagick to add the borders which makes all thumbnails uniform, regardless of original shape. Oh yeah, and I'll need to use EPStoPICT to create previews for EPS files.
Maybe I should get someone to just write a custom application in C...

Thank you both

Pier.
--
Pier Kuipers
Visual ID
* the Media Asset Management solution *

2 Whitefriars
Aungier Street
Dublin 2
Tel. +353 1 476 7059
Mobile +353 87 294 3063
Fax +353 1 478 1366
ISDN +353 1 602 0754

http://www.visualid.com


References: 
 >Creating file from PICT Resource (From: Pier Kuipers <email@hidden>)

  • Prev by Date: Re: Setting User Password?
  • Next by Date: Re: carriage return & line feeds
  • Previous by thread: Creating file from PICT Resource
  • Next by thread: Re: Creating file from PICT Resource
  • Index(es):
    • Date
    • Thread