Copy link to clipboard
Copied
I'm trying to use illustrator actions in order to convert a batch of EPS files to PNG
My PNG files needs to be maximum 4000x4000 while keeping aspect ratio but the actions only allow me to set a fixed size for the whole batch
Any workaround ?
Copy link to clipboard
Copied
Any help ? Been trying to do this since over 7 days, i searched everywhere for an answer... please help me
Copy link to clipboard
Copied
Sorry to have missed you post.
Have you tried Photoshop >> File >> Scripts >> Image Processor to jpg, then a Photoshop action to make png.
Not sure why they don't have a .png option to that script, it is a popular format not outdated like .eps.
Copy link to clipboard
Copied
That wouldn't work because JPG wouldn't save transparency so my PNG would have opaque white background.
I can easily make a batch script to export to PNG, but the biggest obstacle i'm facing right now is to set the correct size. I need highest possible resolution, but always stay under 4000x4000 aspect ratio.
So if i have a 1000x2000 vector, then it would need to output a 2000x4000 PNG ... All files have different sizes and aspect ratio, so i can't just use a script with hardcoded resolution output... It may need some javascript involved ?
Copy link to clipboard
Copied
How about save as .psd, use the script to get you max size then go to .png.
I think the resize to fit should do exactly what you are asking, let me know.
Like your screen name, one of my favorite bands has an album by the name, is that where it comes from?
Copy link to clipboard
Copied
Hmmm sounds like a good idea. I never used photoshop image processor before (i'm more of an illustrator dude) so if i understand correctly it can only process psd files ??
And converting 5000 vector files to PSD won't cause any kind of change in the images ?? I tested a similar way before, i converted all EPS files to SVG files because i can easily batch convert svg->png using imageMagick, however some EPS features weren't supported with SVG so the images were messed up and missing parts 😕
I suppose the band you are talking about is Conflict ? Yeah definetly one of the best anarcho-punk bands !! The name is inspired by their album but it's also the name of a great french book
I work as coder and graphist for a tshirts shop coop where we sell punk bands tshirts and other political stuff. We work with Conflict and other bands to distribute their merch. We have an huuuge batch of vectors to convert to PNG and can't figure out the best way to do it so that's why i came here to ask
Copy link to clipboard
Copied
Actually photoshop can directly process your .eps images. Just put all your .eps files in a folder, and use the Photoshop image processor to change them to .psd file with the settings I show above. Then record an action in photoshop to convert .psd to .png.
Since you know how to do actions in Illustrator, the interface is the same in Photoshop. Photoshop is even better with actions and can record more commands.
Going from .eps (which often is vector) to a bitmapped format like png, can have some loss in quality. 4000 pixels on a shirt is a good resolution you chose though for a shirt as you would need about atlas 300dpi @ 10" x 10" for images, I would not go 2400 dpi for type though as you files would be huge and ungovernable. 4000 pixels should do good as silk screen really cannot do a thin sharp line anyhow.
Glad to hear Conflict is still active. Do you have a website incase I need some CRASS, Flux, Dirt, Varukers shirts.
Copy link to clipboard
Copied
Thanks for the reply,
I tested it with a couple of files but the result PSD is very blurry and pixelisated. Here's a screenshot
On the left it's the original EPS in illustrator, and on the right it's the PSD file after running Image Processor
Gyazo - 80aa493aaa8e2084be32b66290c06652.jpg
When i tried converting to PNG using imagemagick i had the exact same result, even if manually forcing output at 1200DPI ! My attempt with imagemagick is detailled here: mogrify EPS to PNG error - ImageMagick
I have a bunch of SVG files and they are converted to PNG easily. I don't know why the EPS files are causing so much trouble
Here's the image i'm testing with, it's an original stock image from deposit photos, untouched: https://ufile.io/79e55
If i open the EPS in illustrator and just use "save for web" function to save as PNG, the image is perfectly saved 100% like the original file with no quality loss
Mike Gondek2 a écrit:
Glad to hear Conflict is still active. Do you have a website incase I need some CRASS, Flux, Dirt, Varukers shirts.
We don't have all of the bands you listed but the website is https://www.no-gods-no-masters.com
Copy link to clipboard
Copied
ungovernable_force schrieb:
Thanks for the reply,
I tested it with a couple of files but the result PSD is very blurry and pixelisated. Here's a screenshot
On the left it's the original EPS in illustrator, and on the right it's the PSD file after running Image Processor
Gyazo - 80aa493aaa8e2084be32b66290c06652.jpg
The one on the left is viewed at 2400%, the one on the right at 66%. What do you expect?
PNG is a raster based format.
Copy link to clipboard
Copied
The image you posted shows on the right a Photoshop image at 100% view (maybe the post got updated since Monika reviewed, not sure). What you are showing can't be 10" x 10" at 300 dpi, because the image is too small, should look more like what I have below starting with your eps vector.
Looks good for me at 300 dpi assuming you final print size is roughly 10" x 10"
You may want to copy the eps and paste as a smart object into Photoshop, and play around with the dpi settings (keep resample checked). A smart object will continually rasterize itself to the resolution of your Photoshop image size settings, after you hit the ok button. My guess is you may have not kept resample checked, but then hard to guess without actually seeing what you were doing.
Is really quite easy once you go through all the settings thoroughly, but this hangs up many people at first until you have the Ahah moment of enlightenment.
Now I am not saying to do your entire job with smart objects, but just as a learning curve so you when you go forward you will know what to look out for. You will want to do the job as per my first screenshot, only you need to crop your artwork accordingly prior to doing this as I do not think you want all the extra stuff above the light bulb.
Copy link to clipboard
Copied
Dear Expertise, how are you?
I want to convert my EPS figure files to png, but how to convert them?
Copy link to clipboard
Copied
You can create an action and use the Batch command lets you play an action on a folder of files and subfolders.
https://helpx.adobe.com/illustrator/using/automation-actions.html
Find more inspiration, events, and resources on the new Adobe Community
Explore Now