JSX to Extract Full Resolution Image From Layered PSD
I'm somewhat perplexed that this has never come up but here's the issue:
Imagine you have a 2000x2000 image and you import/place that image into a PSD whose document resolution is 800x600. When you export the document as a tif, jpg, png etc the result is an image with a dimension of 800x600. That's fine. But I'd like to use JSX to export the original image at its full 2000x2000 and I can't seem to find a way to do this programatically.
Is it possible to use JSX to recover the dimensions and XY coords of the content on a specific layer in the image stack? If I had those then I could possibly resize the canvas, perform the export, then return the canvas to its original state.
Cheers,
Simon
