• 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
Image Events JPEG compression levels not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Image Events JPEG compression levels not working


  • Subject: Image Events JPEG compression levels not working
  • From: Alex Zavatone <email@hidden>
  • Date: Fri, 22 Jan 2010 15:18:16 -0600

Has anyone noticed that the Save as JPEG compression levels, high and medium create images of the same file size?

Here is the script that I am using.  Save as an application and drop an PNG file on it.  The high and medium files are the same size.  Tested on OS 10.6.2

on open myFiles
tell application "Image Events" to launch


repeat with myFile in myFiles
tell application "Image Events"
set myItem to open myFile
set myFileName to the name of myFile
end tell


tell application "Finder"
set newItem to (container of myFile as string) & "JPG-low " & myFileName
end tell


tell application "Image Events"
save myItem in newItem as JPEG with compression level low
end tell


tell application "Finder"
set newItem to (container of myFile as string) & "JPG-medium " & myFileName
end tell


tell application "Image Events"
save myItem in newItem as JPEG with compression level medium
end tell


tell application "Finder"
set newItem to (container of myFile as string) & "JPG-high " & myFileName
end tell


tell application "Image Events"
save myItem in newItem as JPEG with compression level high
end tell
end repeat
end open

Any insight into getting access to more compression levels and/or actually getting medium and high to act as expected are appreciated.

Thanks, 
- Zav

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Script Bundle
  • Next by Date: Re: InDesign CS3: Find out about page/spread name
  • Previous by thread: Re: Script Bundle
  • Next by thread: Organizing mail into mail folders with Applescript?
  • Index(es):
    • Date
    • Thread