Link to home
Start Free TrialLog in
Avatar of hobster
hobster

asked on

exporting image to gif format

I have created an Action that exports a non-gif image to gif format. During the recording, the gif image was saved in folder C:\Temp, the same folder that has the original image. After the script was recorded, it shows the folder "C:\Temp" under the Action export.

This works fine everytime I'm exporting images from this folder, since I want the exported files to be in the same folder as the original files.

The problem happens when I'm exporting files from a different folder. The program will, by default, put the exported files into C:\Temp rather than the folder the original files were in.

I'm doing this using OLE automation (because I have to). I know if you do this within photoshop, you have the option of selecting where you want the exported image to be placed. And if I use OLE automation, I also have the option of deciding where the exported image will be placed using a dialog box.

But I want it so the user will not have to select any folder and the program will place the exported images into the same folders as the originals, rather than C:\Temp. Makes sense? I hope so.
Avatar of rakkas
rakkas

Shouldn't It just be to include 'Save' (rather than 'Save as...' or 'export') in the action, and when batchprocessing; make sure that you select target=None (since you've already included the 'Save' command in the action itself.
Notice that you must save the image in the same format, othervise the 'Save as..' dialog will pop up instead of just saving It right of!!


Avatar of hobster

ASKER

I'm not doing any batch processing. I have to use visual basic to create an ole automation program that exports one non-gif image to a gif format. Photoshop will not let you save a non-gif image to a gif format. You have to use export.

The problem is where the exported files get placed in.
ASKER CERTIFIED SOLUTION
Avatar of nlove
nlove

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok, but Photoshop can save in gif after conversion of the image to a proper internal graphic format, so I guess that It's the ole-thing that disables this 'option' then?