Article View: adobe.scripting.indesign
Article #18790Re: get image infos (size, resolution,...) in AS - possible?
From: Iain McLeod
Date: Mon, 17 Feb 2003 23:29
Date: Mon, 17 Feb 2003 23:29
7 lines
1678 bytes
1678 bytes
Under OSX you can use something called "image capture scripting" apparently - search in this forum for "Resolution", other people have tried and discussed the same thing. Alternatively you should be able to write a script that will use Photoshop 7's scripting to determine resolution of images - maybe store the info in the file's comments box and retrieve that from within ID. Otherwise... If you know that all your images will be 300dpi then you can use the absolute horizontal/vertical scale properties of image elements to ensure that they are placed at 100% size - but it doesn't look to me like ID can retrieve an image's resolution (not a property of image element). If the images are uncompressed you might be able to infer the image size in pixels from the file size - but you'll have to account for header size unless using RAW format, and you'll still have to compute the aspect ratio from the image dimensions at 100% / 100% scale.
Technical Details
Message-ID:
<1de7ccf9.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de7ccf9.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,1f23addf19503078 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-02-17 15:40:09 PST From: "Iain McLeod" <iain@haines.co.nz> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: get image infos (size, resolution,...) in AS - possible? Message-ID: <1de7ccf9.0@WebX.la2eafNXanI> Date: Mon, 17 Feb 2003 15:29:29 -0800 References: <1de7ccf9.-1@WebX.la2eafNXanI> Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit