Skip to main content
Participant
September 13, 2024
Question

Batch Export JPG to a maximum file size?

  • September 13, 2024
  • 2 replies
  • 542 views

So I frequently need to batch export a number of various artboards to JPGs for web use. The maximum size that the files can be is 100kb, and while some of the artboards are small (and really should be exported at maximum quality so that they don't get too pixelated), some of the artboards are larger and need to be imported at about 40% quality.

 

Up until now I have been manually adjusting the quality of each of the files in order to remain within 100kb, but I'm wondering if there is any sort of script out there that can help me with this. Any ideas?

2 replies

Prajwal k
Participant
February 6, 2026

100 kb gds aplication form 

m1b
Community Expert
Community Expert
September 13, 2024

Hi @Kailene, you say "The maximum size that the files can be is 100kb" but this is not my experience at all—I export jpeg all the time that are much larger than this.

 

So perhaps there is some problem causing this strange limitation for you? Could you make a test document that has several artboards that each contain the same placed image, but each artboard is a different size, eg. 100px square, 500px square, 1000px square, 2000px square. Then try exporting each artboard as jpg and see what you get. If you still have strange things happening, then you could share your example document here and we can test it too.

 

Or maybe someone more knowledgable than me will have an answer!

- Mark

KaileneAuthor
Participant
September 13, 2024

Hello! I think my question may have been worded in a way that was difficult to understand. The client needs all my files to be below 100kbs. So I need all the files to be exported at 100kb or below. If I set all the exports to 40% quality, that's fine... but the really small files end up getting super distorted. I have to export about 60 files/artboards like this every two weeks, and I end up exporting each artboard individually so that they all fall under 100kb while losing as little quality as possible.

 

I think a script for this might be impossible, but it's annoyingly time consuming.

m1b
Community Expert
Community Expert
September 13, 2024

Ah ha! Got it now. Thanks for clarifying!