Jump to content

Photoshop CS Scripting and photo.net Portfolios


jpursley

Recommended Posts

I'm having trouble creating a portfolio here on photo.net. My

original files consist of ~200 TIF files on my home machine, a

portion of which I'd like to post here. I've written a small

utility that uses Photoshop CS scripting to process all images in a

folder: each image is resized, sharpened, watermarked and saved in

JPEG format. I plan to use these JPEGs later to later create my own

web site.

<br><br>

Attempting to upload these images to photo.net, though, results in

the following message from http://www.photo.net/photodb/photo-add-

2.tcl: <i>Problem with your input...File contains xml-encoded

preview data...</i>

<br><br>

As described at <a href="http://www.photo.net/ps7-

problems.html">Problems with Photoshop 7 JPEG Images</a>, the

photo.net software rejects images that have a preview embedded in

them. The suggested workaround is to use Save For the Web, but that

appears to be inaccessable via the script engine.

<br><br>

Photoshop is set to never save image previews, both via the UI and

via my script. I also have EmbedColorProfile set to False, if that

matters.

<br><br>

At <a href="http://www.photo.net/bboard/q-and-a-fetch-msg?

msg_id=008Xt1">http://www.photo.net/bboard/q-and-a-fetch-msg?

msg_id=008Xt1</a>, Brian Mottershead hints that <i>There are other

ways in PS 7 to eliminate the profile information, but none of them

are as straight-forward as "Save for Web..." </i>. Any information

about tweaking PS CS itself or accessing Save for the Web from the

script engine would be much appreciated.<div>00Dh7U-25836684.jpg.b8bdfd7a1150d6b7c4fb63b41e058878.jpg</div>

Link to comment
Share on other sites

Well I was not able to figure out how to disable this 'feature' in Photoshop. Not embedding the profile resulted in the same problem.

<br><br>

Incorporating <a href="http://www.sentex.net/~mwandel/jhead/">jhead</a> into my workflow, however, enabled me to programmatically strip <a>all</a> non-image information from the Photoshop JPEGs. This not only resolved the header problem, but also made for significantly smaller JPEG files.

<br><br>

Hopefully others may find this of use...

Link to comment
Share on other sites

Hmm... I just try to create a script and "Save for web..." is accessing.<br>

It seems to work.<p>

I try something... If it works, you should see my post.<br>

I try to join an exemple with this little script applied on a TIFF file : just "save as Web..." with a size change into 100x100 pixels...

Let's go !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...