How to automate fixing 600 png files?
Copy link to clipboard
Copied
Hi!
I have an image sequence with 600 png file where I want to optimize each png to decrease their filesizes.
Thought I could use automation and run a function macro (their called so in the swedish version think they are called actions in english).
The optimization I want to use is in the "export for web" dialogue to change from png24 to png8. It works fine when I do it manually.
Then I record the macro (action) doing the export for web routine and run it with a group automation from one folder whith the original files into a new empty folder. But then I get the save as dialouge for each and every image. Not fun having to do this 600 times. I have tried with the "ignore save as" option on/off in the settings for the automation but it doesn´t help.
Also tried the image process script but it wont do png files. Sigh...
What am I doing wrong here?
Thanks in advance for any input regarding this!
Explore related tutorials & articles
Copy link to clipboard
Copied
@Torbjörn32134929cyv0 I tried doing this, and it worked both times for me. Please see the attached video with no sound (PNG24-2-PNG8.mp4 — 2 minute video) as I create an action for one image. And then did a 'Batch' Automation for 19 images for a 9-10 seconds I think.
And if you want a voice-over, I do this with my students: https://youtu.be/kxziDfysBbs (6.34 minutes)
Copy link to clipboard
Copied
Image Processor doesn’t have PNG, however, it has been extended by the late Mike Hale:
https://www.ps-scripts.com/viewtopic.php?f=51&t=10225&p=54270
There are many other scripted options for converting to various file formats that you should probably look into:
Image Processor Pro:
https://sourceforge.net/projects/ps-scripts/files/Image%20Processor%20Pro/v3_2%20betas/
Picture Processor:
https://github.com/Paul-Riggott/PS-Scripts/blob/master/Picture%20Processor.jsx
Raw Image Converter:
https://github.com/SetTrend/Raw-Image-Converter
Batch Multi Save:
https://www.marspremedia.com/software/photoshop/batch-multi-save
Batch Save As WebP
https://community.adobe.com/t5/photoshop-ecosystem-discussions/export-many-files-at-once-in-webp-for...
Information on saving and running custom scripts can be found here:
https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html
Copy link to clipboard
Copied
The optimization I want to use is in the "export for web" dialogue to change from png24 to png8.
By Torbjörn32134929cyv0
For completeness, it's also possible to record an action using Image > Mode > Indexed Color and File > Save As to PNG and then use File > Automate > Batch.
Copy link to clipboard
Copied
Thanks everyone for helping out. I found the problem and i am sitting here with egg on my face.
It turned out the problem was that I hade the little window symbols on the action/macro activated in the macro list. I did not know these forces the dialouge popup to open. Turned them off and then the macro chewed through the 600 png:s like a charm.
Lesson learned and sorry for taking your time.

