Article View: adobe.photoshop.scripting
Article #197ResizeImage using dimensions read from text file
From: JeffreyDeRousse
Date: Tue, 10 Mar 2009 15:38
Date: Tue, 10 Mar 2009 15:38
24 lines
1366 bytes
1366 bytes
XP Pro
CS
1GB Ram
Javascripting
Currently have the following code which works great.
if (largePrefsIsOpen) {
docRef.resizeImage(289,null);
}
I am encountering a problem with trying to put a variable in the dimension area (289,null)
I am reading a file that contains only the string "289,null" and want to read that into the resize paramaters as follows...
if (largePrefsIsOpen) {
docRef.resizeImage(largePrefsContents);
}
I can see the value of largePrefsContents is "289,null" minus the quotes but the image is resized to the following pixel dimensions 1 X 7.
The dimensions are read from a text file and put in the variable "largePrefsContents" but for some reason it is not resizing to that.
Any help would be greatly appreciated.
Jeff
Technical Details
Message-ID:
<59b82c0d.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f5839,4e7306c2b43f139b,start X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: JeffreyDeRousse <jderousse@vertisinc.com> Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: ResizeImage using dimensions read from text file Message-ID: <59b82c0d.-1@webcrossing.la2eafNXanI> Date: Tue, 10 Mar 2009 08:38:16 -0700 Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit