🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15719

Re: [AS] Preflight script to scale images... geometric bounds not working

#15719
From: Nathan_Banka
Date: Wed, 19 Nov 2003 00:04
5 lines
1990 bytes
I don't have InDesign on my home computer, so I can't test this until tomorrow, but why make myHorizFrameHeight = 100 a qualifier to process the image? It seems like that would cause the script to only process images that don't need processing, e.g. images that are scaled at 100%. But I'm open for explanations!

The issue here doesn't seem to be that it doesn't scale when I use the selection tool-- on the contrary, it has always worked for that-- but what it hasn't worked for is images whose frames are scaled at 100%, but the images have been scaled with the direct select tool, which is very convenient to do at times. Will these modifications fix that? I've been thinking about coding in a check to absolute scale--judging by the description in the dictionary, it would be less than 100% only when the image has been scaled independently from the frame, as with the direct selection tool. Maybe a line that gets the absolute scales, then sets the absolute scales of theImage to 100 and theFrame to the absolute scales, setting the geometric bounds of theFrame afterwards. . . would that work the way I want it to?

Also, I've added in a check for the difference between the horizontal and vertical scales: if there's less than a 1% difference between them, I fit given proportionally and then move on as usual.
Technical Details
Message-ID: <2ccdf3b1.15@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccdf3b1.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,bcc0c6dca106f772
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-18 16:08:11 PST
From: Nathan_Banka@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] Preflight script to scale images... geometric bounds not working
Message-ID: <2ccdf3b1.15@webx.la2eafNXanI>
Date: Tue, 18 Nov 2003 16:04:35 -0800
References: <2ccdf3b1.-1@webx.la2eafNXanI>
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit