When I place an empty rectangle on top of an image and then export the rectangle as jpeg or png, the export gives me a blank jpeg since apparently ID only exports what's inside the rectangle. However, I'd like to export all contents of other visible layers, and not just the contents of the rectangle. Is that possible?
I guess a work-around would be to place the desired content into the rectangle and the export, but maybe there is an easier option?
Hi @AnotherFrank ,
As I know there is no direct API to export behind of selected rectangle so you have to export twice.
Thanks for confirming Sumit. I was hoping there was an easier way.
Hi @AnotherFrank , you are welcome to try this script, which exports a JPEG via PDF—if you check Selection it will export all of the layers:
Dialog looks like this:
Two quick question for you, @rob day
I’ve also added a fixed pixel width so you can export to a specific pixel dimension at any resolution, and the option to leave the file open in Photoshop in case you want to edit or save to a different format.
PNG is a raster image format, and PDF can be a mix of vectors and images, so PDF would normally be a better format for placing if there are vector objects that you don’t want converted into pixels. You can also place InDesign pages the same way you place a PDF page.