Need to automate a process

G
Posted By
Geoff Fox
Apr 15, 2005
Views
474
Replies
16
Status
Closed
I need to create 100 separate tif files, each proportionally taller than the one before (100 px, 101 px, 102 px, etc.). It’s a one time deal, so I could do it by hand, but if anyone has an easy way to automate this process, I’d appreciate your help.

Geoff Fox

Must-have mockup pack for every graphic designer 🔥🔥🔥

Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.

LS
Larry Scripts
Apr 15, 2005
What does the tiff contain? Are you re-sizing an existing photo or creating a blank file? What version of Photoshop are you using?
This can be done with a script.

Larry
G
Geoff Fox
Apr 15, 2005
Larry,

I want these to be rectangles. They will all have the same width – let’s say 100 px for sake of this discussion (I’m not really sure) and then img001.tif would be 200 px high, img002.tif 202 px high, img003.tif 204 px high, and so on.

I have never tried to automate anything which would increment the parameters.

Have I made this clear or is it still fuzzy?

Geoff Fox
G
Geoff Fox
Apr 15, 2005
Larry,

I want these to be rectangles. They will all have the same width – let’s say 100 px for sake of this discussion (I’m not really sure) and then img001.tif would be 200 px high, img002.tif 202 px high, img003.tif 204 px high, and so on.

I have never tried to automate anything which would increment the parameters.

Have I made this clear or is it still fuzzy?

This will be done with CS.

Geoff Fox
LS
Larry Scripts
Apr 15, 2005
So, each of these will be blank? Just contain a white background? The increment will be 1 pixel?

Larry
G
Geoff Fox
Apr 15, 2005
Just a filled rectangle. So, I suppose blank applies.

One pixel is a reasonable increment, but I’m sure once I see how it’s done I can change it to whatever makes sense.

Geoff Fox
J
jscheimpflug
Apr 15, 2005
"Larry Scripts" wrote in message
So, each of these will be blank? Just contain a white background? The increment will be 1 pixel?

I was wondering the same. If that’s the case, and the application is a web presentation, then a 1x1px image will do the trick; just put it with a border and change the image size iteratively.

OP! Exactly what are you trying to accomplish? Example? There’s a chance that an easy solution is at hand. Regardless, an action will still do the job.
G
Geoff Fox
Apr 15, 2005
This is for a TV station’s graphic system.

It will see the temperature in the extended forecast, associate a graphic with that one temperature, and place that graphic on the forecast page. Voila – quick and dirty temperature graphing from a system that doesn’t really support graphing. Tif is the file type needed.

Geoff Fox
J
jscheimpflug
Apr 15, 2005
"Geoff Fox" wrote in message
This is for a TV station’s graphic system.

It will see the temperature in the extended forecast, associate a graphic with that one temperature, and place that graphic on the forecast page. Voila – quick and dirty temperature graphing from a system that doesn’t really support graphing. Tif is the file type needed.

🙂 It’s easier than you think. First, if it’s a web application, then TIFF is okay, but GIF and JPEG will do because you only need a 1×1 pixel image. A little JavaScript that takes the temperature as the argument and then sets the image size to ‘n’ pixels long will do the trick. (‘n’ being multiplied by a scale factor) I could cut the code in a few minutes.
G
Geoff Fox
Apr 16, 2005
The way the graphics system works, I need a discrete image for each temperature. I’ll actually create 120 of them, from -10 to +110 degrees. I’m not sure what the final sizes will be, but they will be incrementally sized, and I’d like the graphic’s file name to be an increment… img001.tif, img002.tif, img003.tif and so on.

When this system sees the temperature, it knows to display the corresponding graphic. This is not for the web where I know I could use a 1×1 graphic and then use html to size it.

If you’ll give me a hint, I’ll try and figure out the rest.

Geoff Fox
LS
Larry Scripts
Apr 16, 2005
I’m getting ready to do the script. I’ll have it for you tomorrow. It will allow you to specify most parameters.
I’ve had to use individual pictures to do an animation in Visual Basic 6. Larry
B
Brian
Apr 16, 2005
Geoff Fox wrote:
This is for a TV station’s graphic system.

It will see the temperature in the extended forecast, associate a graphic with that one temperature, and place that graphic on the forecast page. Voila – quick and dirty temperature graphing from a system that doesn’t really support graphing. Tif is the file type needed.

Geoff Fox
Geoff,

Alternatively, do you have Macromedia Flash? There are tons of ready made ‘components’ floating around that you could use right away. I have a meter that changes length depending on the value you give to it. It also gets warmer in colour towards the higher end and cooler in colour towards the lower end (negative values). It can move in either direction depending on whether the value is positive or negative.

Regards,
Brian.
J
jscheimpflug
Apr 16, 2005
"Geoff Fox" wrote in message
The way the graphics system works, I need a discrete image for each temperature. I’ll actually create 120 of them, from -10 to +110

I understand. Well, CS can do it. I just ripped out 100 images with a traveling bar going left to right, file names 1.tiff to 100.tiff. Longest is 500 pixels wide (48 tall). I forgot you wanted 120 of them.

The trick was to use ImageReady to create a 500 pixel-wide image, then specify 99 guides, then slice-on-guides. (creates 100 5-pixel slices.) Next saved slices as images (one step process), then imported the folder as layers (for animation). That put 100 slices on top of each other. Then take align-layers with 5 pixel offset. Switch to Photoshop, export layers as TIFF files. Then in CS browser, batch rename using 1 to 100 as TIFF.

Not exactly intuitive. Could have skipped a couple steps but this was the least keystrokes. Now I have to figure out how to get them to you. 🙂
J
jscheimpflug
Apr 16, 2005
"jjs" wrote in message
http://elearning.winona.edu/jjs/temp/

Images can be retrieved using this cheat:
http://elearning.winona.edu/jjs/temp/images/1.tiff

where "1.tiff" is replaced by 1 through 100.tiff example: http://elearning.winona.edu/jjs/temp/images/100.tiff etc…
H
harrylimey
Apr 16, 2005
"J.Scheimpflug" wrote in message
"Geoff Fox" wrote in message
The way the graphics system works, I need a discrete image for each temperature. I’ll actually create 120 of them, from -10 to +110

I understand. Well, CS can do it. I just ripped out 100 images with a traveling bar going left to right, file names 1.tiff to 100.tiff. Longest
is
500 pixels wide (48 tall). I forgot you wanted 120 of them.
The trick was to use ImageReady to create a 500 pixel-wide image, then specify 99 guides, then slice-on-guides. (creates 100 5-pixel slices.)
Next
saved slices as images (one step process), then imported the folder as layers (for animation). That put 100 slices on top of each other. Then
take
align-layers with 5 pixel offset. Switch to Photoshop, export layers as
TIFF
files. Then in CS browser, batch rename using 1 to 100 as TIFF.
Not exactly intuitive. Could have skipped a couple steps but this was the least keystrokes. Now I have to figure out how to get them to you. 🙂

Impressed? Not arf.!

Harry
LS
Larry Scripts
Apr 16, 2005
Geoff,
Here is a script that I wrote for you:

http://home.comcast.net/~larryscripts/Photoshop_CS/Make_Tiff s.zip

Unzip it and place it in the "Adobe/presets/scripts" folder.

Open up Photoshop CS and select File>Scripts. You’ll see it in the flyout list.

It will prompt you for a destination folder. It is set up to create 100 tiffs starting with a width of 100 pixels, height of 200
pixels, file name will be IMG001.tif, IMG002.tif, etc. It will increment the height of the image by 1 pixel each iteration. You
can change these parameters in the file.

You can open up the Make Tiffs.js file in a text editor like Notepad or Wordpad on the PC. You can change the values of the various parameters and save the file back out as a text file.

Hope this helps,
Larry

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

Related Discussion Topics

Nice and short text about related topics in discussion sections