Select your mask and double click on the Crop Area tool, or if in CS4 the Art Board tool from the options pull down select Fit Crop Area to Selected Art. Now try to export your jpg.
My presets menu doesn't have that option? Only Fit Artboard to Artwork Bounds and Fit Artboard to selected art.
After activating the Artboard tool correct portion of the image is shown.
Well then I guess you're working in CS4?
It would be Fit Artboard to selected art. Then export.
When I select "Fit Artboard to select art", Illustrator moves the selection to include the clipping mask.
You can try this yourself:
- Draw one rectangle inside the page and another one overlapping the first rectangle and going beyond the page boundaries
- Select rectangles and make clipping mask
- Select resulting object + double click artboard tool
- Now Illustrator should show in artboard exactly the parts inside the page (however, if you export to JPG at this point also the overlapping part is included)
- "Fit Artboard to select art" -> selection moves to include whole clipping mask (no effect on export JPG)
Check the "Use Artboards" option in the export window. Or tick "Crop to artboard" in the save for web dialog.
You may perform the normally destructive deed:
1) Create a rectangle covering the desired part (stroke, no fill makes it easier);
2) Select both and Object>Clipping Mask>Make;
3) In the Transparency palette dropdown, select anything bu normal;
4) Object>Flatten Transparency (no need to change options).
4) should get rid of the outlying parts for you.
"Check the "Use Artboards" option in the export window. Or tick "Crop to artboard" in the save for web dialog."
Thanks!! I just didn't notice that option.
Thank you, Jacob Bugge! Your solution solved the problem I came here for. Very sophisticated that transparency flattening.
You are welcome, hungrywave.
Open your Illustrator file in Photoshop and save it in JPG format