Option to export to clipping mask boundaries
When exporting assets to raster formats, it would be a huge time saver if we had an option to use the boundaries of clipping masks as the edge of the exported artwork. I created three triangles and used a circle as a clipping mask in the attached image. You can see that the exported file has a lot of padding around the artwork because the outer edges of the triangles are used as the boundaries of the file.
If there was an additional option to use the clipping mask boundary as the edge of the exported raster file, it would mean that I wouldn’t have to open every exported file in Photoshop to then crop to the edges of the artwork and re-save the file.
Another new release of illustrator and still no fix....
Stephen Mitchell commented
This is a really fundamental feature...it's basic, it's not even a feature, it's a basic requirement,
It's ludicrous that you can't create artwork with a mask and have it export the way you see it on the screen.
It's almost not worth creating it in Illustrator as the added work to chop the white space off totally negates the use of asset export @ different sizes.
This isn't something we should have to find workarounds for, if asset exporter won't export the artwork as WYSIWYG, it's not fit for purpose.
Another method that I have found out that is super quick.
1. Save your Ai file in PDF.
2. Open the PDF file in photoshop
3. Save the file in whichever file format you require
*PDF will preserve the clipping masks and crop whatever is outside the artboard hence making our lives easier.
This won't affect your artwork at all and you still get the option to save in whichever res you need. Hope it works for you guys too ;)
A workaround that I stumbled upon while experimenting that is reasonably fast is this:
1. Copy your Illustrator file so that anything you do will not have consequences for the original
2. Choose the artboard tool from the tool shelf
3. Double click the object you want to export to resize the artboard to the object
4. Use Export -> Save for screens and choose to export the artboard instead of the object
5. Repeat double-clicking and exporting for all your objects
This is the fastest workaround I have found so far.
How in the WORLD can this bug still exist after so many years?? What?
The fix is not even difficult, they need to run a simple script when exporting PNG. Get the stupid file and then run the script to remove transparent pixels, thats it. The script is from the 90s and is open source, it works on C, Java, Pearl, Python, LUA and many other languages. They could really solve it in 30 minutes if they want to. They wanna make it sound like is something difficult, but I am a noob programmer and even I could fix it.
Tannie Low commented
This some egregious ********. We must gather outside the Adobe offices and prohibit employees from going home until this BUG is fixed!!
This is been on for already 2 years and seems like Adobe is just not going to listen to their customers.
Here is my work-arround this annoying thing:
I export all my objects to one folder, then open terminal and use ImageMagick suite of tools’ “convert” program to trim the transparent pixels around the image. It works flawlessly on all the files in the folder.
If you guys want I can make a tutorial on it. It is an extra step I wish I didn’t need to do, but is better than opening photoshop for each image or doing the PDF thing. Just open terminal on that folder and use same command to look for all PNG and trim transparent edges and voila.
We're having to export to pdf then open in photoshop and export to pdf to make this work. It's a real time sink.
Yes! (Or if "Use Artboards" is checked off by default so I don't have to click it every time I want to "crop" my exports, but that's just a band-aid non-solution.)
Erik Enrique Lopez commented
PLEASE REVIEW & CONSIDER THIS !!!!!
MUY IMPORTANTE !!
Diego Martinez commented
I'd love to see this behavior changed to exporting without the masked areas showing around your art. +1
Von Glitschka (Vonster) commented
The whole concept of a clipping mask it prevent content from showing visually. That is why we masked it out. So why is your code saying "Eh, forget your mask we're going to include the stuff you can't see." Of course if they had real-world beta testing this bug would have been caught before they released another half-baked feature.
Every MAX they tout the power of Adobe Sensei and the so-called magical machine learning abilities. Look at how it can smart remove this stuff in a video at real-time. Yet none of that can solve this?
Nope. When I asked an engineer about this several months back in person they acted like it was really hard? Like I was requesting them to program a worm hole to a parallel universe kind of hard? Than again they can't figure out canvas rotate yet either, they've tried and failed three times. Something about not being able to get raster effects to rotate or something.
I remember when masked items screwed up alignment because it would consider the unseen masked content. They seemed to have solved that which seems like a similar problem to this?
Don't hold your breath though. They still have a basic fundamental snapping bug in Ai that they never fully fixed. How about this as an Ai Team strategy. Forego any new features until all major bugs are completely resolved and killed off. If that takes two years so be it. This includes stability too, Ai still crashes way too much.
Adding a vote for this - it should absolutely be a non-issue. I work for a large architecture firm which has an Environmental Graphics department; we have many employees designing signage and wayfinding for airports in Illustrator, which we need to export images of by asset in batch form for use in other platforms (Revit). This issue creates a major kink in what SHOULD be a relatively seamless workflow. Our EG department is currently evaluating how they can better integrate their work with Revit moving forward, and unless this changes soon, the answer will most likely be to remove Illustrator from the equation and do the work in Revit. This is, of course, not popular with our Environmental Graphics staff, but it is absolutely going to happen if this workflow does not improve.
Von Glitschka (Vonster) commented
It's only been two years. Took them 4+ years to address the snapping bug and they still haven't fully fixed that one either because it still happens where even if smart guides is turned on it won't detect anchors or paths and act like nothing is there. Happens a lot of converted type to paths too. So in that respect the creative process has been held ******* now for 6 years because of sloppy development. So 2 years is nothing.
I just can’t believe it’s been 2 years FML
So ridiculous. Absolutely a bug. Not a feature request. Why would anyone want to export this way???
The only thing i can do is draw an pixel perfect artboard around the asset i need, then save for web, end up with a ton of artboards :/
Sabine, I think you haven't quite understood the issue we are discussing in this thread.
Make a new layer. Put a form the same size as the artboard on that layer. Define layer als clipping mask. Drag all your artwork in that layer. Create a new layer on top of the artboard layer. Drag clipping mask layer into the new layer. Export. Works for me