Custom Web Gallery Script using frameset for PS7 only

Upload Photoshop Scripts, download Photoshop Scripts, Discussion and Support of Photoshop Scripts

Moderators: Tom, Kukurykus

garek007

Custom Web Gallery Script using frameset for PS7 only

Post by garek007 »

Hello,

This is my first post at this forum. I spend most of my time over at adobe's and just learned of this recently. I'm uploading a script that has been a year or more in the making. I've attempted to remove all references to my company servers, but you will need to get into the script and modify server names for your own use. If there are any errors please post them here.

Here's how the script works.

You'll need a folder of images.
Open one image from that folder and run the script.
Photoshop gets all the information needed (ie folder name, location, etc) and opens all images sizing each one in two sizes and making an html framset in the process.
NOTE: I had to do it this way because PS7 doesn't support dialog boxes.

The script will give you three image folders
Jpeg300_HiRes - these are the original resolution and size as the starting images. If you started with tiffs, you get jpegs, if you started with jpegs, they are moved into this folder
Jpeg72_LoRes - these are sized for powerpoint about 9 x 7.5 inches at 72 dpi. that size is also good for email if you don't use powerpoint
thumbnails - these are the thumbnails for the framset

Special thanks go to Xbytor, Andrew Hall, and Larry Ligon for helping this script evolve and teaching me along the way. Thanks gentlemen.

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

mahalie

Custom Web Gallery Script using frameset for PS7 only

Post by mahalie »

garek007,

Thanks for your script, it has been really helpful to me. I've fixed the two functions that deal with the file name and extension that you commented 'to fix later'.

At line 380 of v7 replace the functions getExt() and removeExt() with the following:

Code: Select all   /* This function recieves a filename and returns the filename extension */
   function getExt(){
  var currentDoc = activeDocument;
  var curDocName = currentDoc.name;
  var iLen = String(curDocName).length;
  var ext = String(curDocName).substring(iLen, curDocName.lastIndexOf('.')).toLowerCase();
  return ext;
}
   
   /* This function recieves a filename and returns the filename without the extension */
   function removeExt(str){
  var iLen = String(str).length;
  var ext = String(str).substring(0, str.lastIndexOf('.'));
    return ext;
  }
garek007

Custom Web Gallery Script using frameset for PS7 only

Post by garek007 »

Glad it worked for you I can't remember what was broken about those functions, can you tell me? I think they were working okay for my needs at the time though. But maybe you made them better.

I've actually got a CS2 version of this script with a dialogue. I'm still improving the dialogue, but one thing I thought of giving more control over is which file types can be opened. As of now you have to go into the script to modify it.
Norbert

Custom Web Gallery Script using frameset for PS7 only

Post by Norbert »

But why Frame Sets and PS 7?
garek007

Custom Web Gallery Script using frameset for PS7 only

Post by garek007 »

Because at the time, PS7 was all I had.

Framesets because that's what I wanted to use and the reason I didn't use the built in gallery function of Pshop, is because I couldn't do the resize then go right into the gallery. I even tried capturing code with script listener and it didn't work. The pathing wouldn't allow it.
v.bampton

Custom Web Gallery Script using frameset for PS7 only

Post by v.bampton »

Did you ever get any further with the CS2 version Garek007?

My reason for asking...
I currently have a script which run the integral cs2 web photo gallery with various additional user input (colour, black and white and sepia variations, copyright choices etc), but I'm wondering if I can use the same script to update various other options in the gallery templates which the integral cs2 web photo gallery can't access. Any ideas?

Thanks for your help!

Victoria
garek007

Custom Web Gallery Script using frameset for PS7 only

Post by garek007 »

sorry I haven't been around for a while. yes the CS2 version is relatively complete. If you get this, email me if you need it stan_alach AT hotmail DOT com
v.bampton

Custom Web Gallery Script using frameset for PS7 only

Post by v.bampton »

Thanks! Email is on it's way!

And apologies to everyone else that I haven't been around for a while - busy catching up with work at the moment, so haven't had much time for scripting!