1

Sometimes when I'm working on a piece, I'll use multiple resource intensive patterns & effects like Transforms, 3D revolves, etc. to the point where the document becomes slow and unstable. Then i'll try to expand things as much as possible to reduce them to their simplest forms, like basic strokes and paths, and I'll use clipping masks to put textures and patterns on the actual objects that make up the basic structure of the image, like their wearing a skin. Problem is it seems the complex objects objects are still consuming system resources even after expanding them, because the effects can still be adjusted and handles/anchors from before the clipping mask are still showing up in empty space. I think what I'm trying to do is what is referred to as flattening and/or consolidating in other softwares like Inkscape. How can I do that with Illustrator?

Sometimes I can get it to work if I'm really persistent and try enough combinations of tools like the pathfinder, expand, expand appearance, divide below tools, etc. but it's a hacky process and things never quite go the way i want them to when I do it like that.


Addendum

Okay, so I didn't want to be too specific, I wanted to present the broader issue, rather than a specific image, because otherwise people get distracted and come up with solutions for a single case, that isn't necessarily relevant to all the other cases. So, I'm going to share a story relating to a specific case, but just try to keep it in mind. I mean, If you have a solve for this instance, go on and share it, but my hope is that we can target the root, rather than the symptoms.

Anyway. I play this game with my sister, right; it's like a competition. One of us finds an interesting photograph and we both have to recreate it in our own style, and see who can do it best. She draws it freehand, I construct scalable vector graphics. Here's the current subject (real photo, by the way):

enter image description here


Naturally, I started with the eye(s). I made five variants. These were all exported directly from Illustrator and then previewed in Finder (macOS) Notice how the SVG has the best dynamic range. I don't know how that happened.

Swatches

enter image description here
Screenshot of SVG - Swatch #1


enter image description here Screenshot of PDF - Swatch #2


enter image description here Screenshot of PNG - Swatch #3


enter image description here Screenshot of SVG - Subject #3 fails to render properly - (revealing hidden layers; isolated incident)


Closeups

enter image description here
Screenshot of SVG - Subject #4 Isolated (second from the right)


enter image description here Screenshot of SVG - Detail (extreme closeup)


In Vivo

enter image description here Screenshot of PDF - Showing invisible artifacts


enter image description here Screenshot of PDF - Variant with lots going on


enter image description here Screenshot of SVG - Swatch #1 fails to load properly (persistent incident)


enter image description here Screenshot of SVG - Original prototype (being constructed)


Warnings and Errors

enter image description here Screenshot of PDF - Warning (persistent incident)


enter image description here Screenshot of SVG - Error (persistent incident)


Additional Information

The SVG file is relatively light (12.9 MB) and can be previewed with my file manager, but cannot be opened properly by Illustrator (the software that built and exported them). Neither can Inkscape. Or any similar software that I've tried. So I resigned to using the PDFs that were exported at the same time. Illustrator can't display them properly either, but they still look kind of the same, almost; just kind of dull and lifeless. But even with a fully optimized PDF file weighing only 6.2 MB it's sluggish and locks up whenever I try to edit it.

279.5 MB = Original .ai  file
 12.9 MB = Original .svg export
133.7 MB = Original .pdf export
 51.9 MB = Second   .pdf export (optimizd)
 24.7 MB = Third    .pdf export (heavily optimized)
  6.2 MB = Final    .pdf export (single subject only)

Check it out

I made the whole project public.
Browse the repository here.
Hosted on Google Drive

10
  • Divide below is usually a really bad idea!
    – joojaa
    May 20, 2019 at 17:59
  • @joojaa, Why? It can be a pain in the ass, especially with lots of layers (using that term loosely), but If it doesn't behave the way I expect it to (which is often), I just undo it. It should be built into the pathfinder I reckon.
    – voices
    May 20, 2019 at 18:05
  • Divide below slices the models up unnecessarily, increasing the complexity of your scene, also causing the rendering algorthm glitch out in the process. In essence you are trying to solve 3d graphics by layering more on top of each other then slicing it into tiny pieces. Instead you should start viewing at how you construct stuff
    – joojaa
    May 20, 2019 at 18:10
  • 1
    Still, I don't mean to make it seem like I think I know everything. I'm into learning new ways of doing things. I was never taught how to use Illustrator, I just played with it until I started to get the hang of it. If I'm wrong, or you know a better way of doing things, chuck it in an answer, and I'll give it the big tick.
    – voices
    May 22, 2019 at 0:30
  • 2
    Hard to say anything there is no substance in your question. Anyway none of the fuctions you present actually make the file lighter. There is not really a way to consolidate vector drawings. Either you built them that way or not.
    – joojaa
    May 22, 2019 at 4:10

1 Answer 1

1

Overall thoughts, all I can do really as we don't have any details or screengrabs to understand your situation other than at an overview level:

1. If you have a lot of transparency effects, sometime a last step can be flattening transparency.

2. You can often save large file sizes when you have repeating or iterating elements by using Symbols.

3. Simplify paths whenever you can whilst keeping curve resolution - all the extra nodes / anchors add filesize too, especially with complex effects, fill patterns etc.

4. If you have a lot of faux-3D elements from Illustrator's 3D extrude or revolve tools, you can sometimes save file size and resources by expanding these, and then sequentially moving through the paths of that expanded group from the back, deleting anything which is hidden by the front elements - the 3D system generates ALL the relative surfaces projected into your 2D Cartesian space, in their appropriate relative stacking order - so when for example you've a solid roughly cylindrical object with shading, there are a bajillion filled paths that were "facing away from you" on the "back" side of the object, and illustrator faithfully reproduces them all for you in case you want to use transparency or wireframes or something: removing all faces you cannot see (culling, in 3D terms) will save you filesize and should make illustrator more performant.

In this image I did the exact opposite so you could see what I mean: I expanded the 3D rotated object and deleted the forward-facing stuff so you you could see all the stuff Illustrator created for the interior surfaces, the backwards-facing surfaces etc - all of which you can typically remove with impunity.

enter image description here

Of course, the downside of all these sorts of techniques is that whilst they may save you file size and performance lags, they almost all break non-destructive workflows and shift you to destructive workflows, making design iteration far harder.

So - save lots of versions of the files as you go.

Also worth considering - you can Place Illustrator files into Illustrator files - so you could, for example, do your 3D extrude or rotate, and keep that in a single object container file, and place it into a hosting file in which your overall illustration exists - once it's placed, editing is a double-click and you're in deal, and you can both make your main file more performant and a fair amount lighter - and depending upon your workflow needs, this can allow task sharing in a meaningful way too.

Here's a host .ai file with the rotated object .ai file placed into it:

enter image description here

Hope some of this helps somehow; good luck.

2
  • I tried using symbols. It sounded like a great idea. Problem is I usually want say 5 variations of the same thing, so it kind of works against me here. I mean i's useful if I want to make a change to something and have it effect all 5 versions. On the other hand the reason I have 5 versions is so some things can be different. It's weird.
    – voices
    May 23, 2019 at 22:20
  • This looks like all the possible ways to 'consolidate' the vector files. @voices I guess symbols will be more useful for patterns with 100's of objects (like your example); for 4 or 5 repetitions it won't make much of a difference in performance.
    – Luciano
    Oct 21, 2019 at 9:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.