Odiemance opened this issue on Aug 20, 2003 ยท 4 posts
Odiemance posted Wed, 20 August 2003 at 2:48 PM
I'm setting up a website. Once I have an image ready I always have to expand the canvas size 70 pixels, each way, to add a bkg and drop shadow. Doing the math is a pain. Are there any action that'll just add the 70 pixels? I looked for this at actionxchange.com, but came up empty.
aip2000 posted Thu, 21 August 2003 at 2:08 PM
Attached Link: http://www.adobe.com/support/downloads/detail.jsp?ftpID=1536
You can resize by 70 pixels with Photoshop Scripting. On a PC you can do it with the following VBScript. This can be done in AppleScript or JavaScript for Mac users. I don't write either of those languages. Further information at: http://www.adobe.com/support/downloads/detail.jsp?ftpID=1536 ' VB Script to Resize for drop shadow 'save this code with a .vbs extension. 'double click and it will resize all open documents with a 70 pixel border Dim appRef 'As New Photoshop.Application set appRef = CreateObject("Photoshop.Application") ' Remember current unit settings and then set units to ' the value expected by this script Dim originalRulerUnits 'As Photoshop.PsUnits originalRulerUnits = appRef.Preferences.RulerUnits appRef.Preferences.RulerUnits = 1 'psPixels Dim DocRef 'As Photoshop.Document Set DocRef = appRef.ActiveDocument ' resize all open documents For Each DocRef In appref.Documents appRef.ActiveDocument = appRef.Documents(DocRef.Name) DocRef.ResizeCanvas DocRef.Width + 70, DocRef.Height + 70, 5 Next ' DocRef ' Restore unit setting appRef.Preferences.RulerUnits = originalRulerUnits ' end of scriptdreamer101 posted Thu, 21 August 2003 at 2:35 PM
It can be done with an Action in Photoshop.
yolkworm posted Sun, 24 August 2003 at 10:54 PM
LOL, specifying pixels is the only way you can do it in Painter and it has always annoyed me that it didn't work like PS. It's ammusing to see someone that actually wants to do it Painter's way! -Bill