• 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: Image Resolution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image Resolution


  • Subject: Re: Image Resolution
  • From: Leonide Principe <email@hidden>
  • Date: Mon, 4 May 2009 22:56:26 -0400


On May 4, 2009, at 6:39 PM, Roger Howard wrote:

if all else fails, you can easily set image rez via
Exiftool (from past exchanges with you, I think you may be using exiftool
already).

Sure, ExifTool! 

set exiftool_path to "/usr/bin/exiftool "
set exiftool_args to "-jfif:Xresolution=300 -jfif:Yresolution=300 "
set theNewRes to quoted form of POSIX path of theImage
do shell script exiftool_path & exiftool_args & theNewRes

On my search I find another direct way to do the operation:

set theNewRes to quoted form of POSIX path of theImage
do shell script ("sips -s dpiHeight 300 -s dpiWidth 300 " & theNewRes as string)

Good, now I will test the two solutions...



As an aside, a quick look at the script you posted below raises another
(unrelated) issue - you seem to be embedding ICC profiles in images,
without actually converting the images to the appropriate color space - as
a result, if I'm correct, the 4 versions of images you're generating will
not match (color) if you opened them all in Photoshop.

What I see is:

1. You convert a master image to four different sizes
2. You then embed Adobe RGB profile in one size, and sRGB profile in the
other three - but without actually converting the color.


Roger, sorry, I don't understand your reasoning... do you refer to the RGB profile?
The ColorSyncScripting Dictionary don't have a "convert" command.
But looking better I see that this part of the script appears much more like a draft.
The four Versions are generated from a Lightroom file (psd, tiff or jpg) and it have already the AdobeRGB profile embedded, but it can be a ProPhoto or a Lab profile too, then I need to be sure that the Master File stored in my database will be an AdobeRGB, it is the Hires image that will be delivered to Clients, it abide another round of lossless compression (because client may wish to edit or crop).
Different situation with Display, Web and Thumbnail images which are ready-to-use and only for consideration purpose, then sRGB.

Another problem that I face is a basic sharpening need on the three last versions. The only solution that I have until now is GraphicConverter or ImageMagick.

Thanks for your helpful suggestions, 



Leonide Principe

Amazon Stock Photography
Welcome Page: http://www.leonideprincipe.com
Archive: http://www.photoshelter.com/c/principe/

PhotoKey Solution
Keywording, Tracking and Selling RM Photographs
http://www.leonideprincipe.com/photokey/
Community Forum
http://www.leonideprincipe.com/forum/









 _______________________________________________
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

References: 
 >Image Resolution (From: Leonide Principe <email@hidden>)
 >Re: Image Resolution (From: Roger Howard <email@hidden>)

  • Prev by Date: Re: Image Resolution
  • Next by Date: Re: Image Resolution
  • Previous by thread: Re: Image Resolution
  • Next by thread: Re: Image Resolution
  • Index(es):
    • Date
    • Thread