• 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: Scaling large images w/ Akua Sweets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scaling large images w/ Akua Sweets


  • Subject: Re: Scaling large images w/ Akua Sweets
  • From: Landis <email@hidden>
  • Date: Tue, 23 Oct 2001 22:05:54 -0700

> From: Landis <email@hidden>
> Subject: Re: Scaling large images w/ Akua Sweets

> Thanks for the great and rapid responses. I appreciate the help.
I've gotten three replies so far, and have tried all three methods
without succes.

Here's a script I use all the time, employing Akua Sweets to reduce
images to a maximum dimension.

...

set theImage to scale image theImage to {0, 0, x, y}
store image theImage in ((destFldr as text) & fileName) [optn-L]
as "JPEG" with percent quality 75
apply catalog info {file creator:"GKON"} to alias ((destFldr as
text) & fileName)
set convCnt to convCnt + 1
end repeat
if convCnt > 1 then
set theText to (convCnt as text) & " images were converted"
else
set theText to "One image was converted"
end if
say "Conversion completed" using "Fred"
say theText using "Fred"
activate
display dialog theText buttons {"OK"} default button 1 [optn-L]
with icon note giving up after 15
end open

Watch out for line wraps. "[optn-L]" stands in for the continuation character.

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com


Marc and fellow AppleScripters,

Thanks for the sample script, it worked perfectly and I really like the speaking announcement of completion. Nice touch!

My problem is that I still can't get my script to work on really large PICT files. I've found when dealing with 40MB images that the only way to get the image to load is with the "with proxy return" part. But then the storing or scaling part of the script doesn't work. Am I using the proxy wrong? How does one use a proxy in this way? My original script does work with JPEGs and PICTs of reasonable sizes, it just gets weird when I add the large files to the mix and try to use proxies. Any suggestions along this line?

One other thing: anyone out there know anything about Scripting Apple's QTVR Authoring Studio? I'm trying to make a project manager with stitchers in it and the dictionary is really close to no help (neither is any knowledge of normal AppleScript I'm finding - really strange AS implementation in a program from Apple no less).

Thanks for all the help everyone's rendered so far!

Landis


  • Prev by Date: Re: Recommendations for AppleScript Formatting
  • Next by Date: Problem Reading Graphics from FileMaker
  • Previous by thread: Re: Scaling large images w/ Akua Sweets
  • Next by thread: Re: copy & set statements
  • Index(es):
    • Date
    • Thread