PSD to JSX

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

JCabral

PSD to JSX

Post by JCabral »

Usually do enough digital albums with vacation photos, tours and trips.

The dimensions of the albums are varied which makes me very time consuming processes to resize the templates I have.

I wonder if there is some software that I turn my PSD templates in JSX files to make easy transform to new dimensions?

Thanks

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

pfaffenbichler

PSD to JSX

Post by pfaffenbichler »

While it is possible (if I remember correctly) to store a file’s data in a jsx and have the jsx create a file subsequently this generally seems like a bad idea to me.

Having a Photoshop Script (which are mainly but not exclusively intended to automate Photoshop operations) create an image consisting of graphic elements by means of creating Layers, Paths, Type might make more sense.

Of course so far we have no way of knowing what your templates look like and what rules you want to govern their adaption to different sizes.
JCabral

PSD to JSX

Post by JCabral »

"Having a Photoshop Script (Which are Mainly but not Exclusively Intended to automate Photoshop operations) create an image Consisting of graphic elements by means of creating Layers, Paths, Type might make more sense."

It is precisely to automate the operations of photoshop, I put the question here.

The template more "complex" that I can have, is the figure include. You can have the windows to insert the photos, some outlines, a colorbar, the greatest difficulty may be in relation to windows as they can be any type of SHAPE.

The big advantage to have a script that I draw this template is that if I change an album with dimensions 20x10, to another with dimensions 6x6, the script can resize the entire layout for the new dimensions quickly.

Try the file I include myself, for different sizes of pages in photoshop.

So my question keeps "I wonder if there is some software que I turn my PSD templates in JSX files to make easy transform to new dimensions?"


"Of course so far we have no way of knowing what your templates look like and what rules you want to govern Their adaption to different sizes."

The only rule is to keep the proportionality between a layout and a new layout with different dimensions, taking into account the new dimensions.

Thanks
JCabral

PSD to JSX

Post by JCabral »

I do not know if the files are attached, please tell me
pfaffenbichler

PSD to JSX

Post by pfaffenbichler »

I can make out no attachments.

So my question keeps "I wonder if there is some software que I turn my PSD templates in JSX files to make easy transform to new dimensions?"
Once again: You may be able have a Script create the elements of your layout – this is not the same as having a psd within a jsx.
csuebele

PSD to JSX

Post by csuebele »

From what I understand, you would have to write a script to create your templates. I don't think there is anything that can take a PSD file and turn it into a script to create other templates.
JCabral

PSD to JSX

Post by JCabral »

pfaffenbichler wrote:I can make out no attachments.

So my question keeps "I wonder if there is some software que I turn my PSD templates in JSX files to make easy transform to new dimensions?"
Once again: You may be able have a Script create the elements of your layout – this is not the same as having a psd within a jsx.

You're right, sorry for my bad english.

The problem is as follows:
1) First I do a layout in Photoshop with windows, color bars, outlines, etc..;
2) Through an application (maybe a script), turne that file into JSX. This script allows you to resize the initial layout in another with different sizes depending on the size of the page open in Photoshop.

I think I explained myself better now what is intended.

I´m having problems on attach files always a msg saying NOT ALLOWED, JPG anda TXT.
csuebele

PSD to JSX

Post by csuebele »

If you're creating a new template in Photoshop, you can use the scriptListener when doing so, then use the code it generates to create your script.
JCabral

PSD to JSX

Post by JCabral »

csuebele wrote:If you're creating a new template in Photoshop, you can use the scriptListener when doing so, then use the code it generates to create your script.

And how to solve the second part of the question, namely, how to do the resize the entire template for a new album with new dimensions?

I forgot to say that I know ZERO about JavaScript language

Thanks
csuebele

PSD to JSX

Post by csuebele »

It depends what you have on your template. If nothing on your template has to be scaled proportionally, you can just resize your entire document. You can get the code from scriptListener also and just use put a variable where the scriptListner code put a value that you can change. If you have elements that require to be scaled, you can set your document size, then add all your elements with the code that you got from scriptListner, then just scale that layer to whatever the document size is, and re-position the layer using the translate function. It actually would be better to establish the document size first then insert all your elements and scale them using percentages.