Crop to Opaque Macro - for straightened or rotated images
After using the Crop Tool to just straighten an image you are left with transparent areas on all 4 sides.
This macro will "crop to opaque" to get rid of those transparent areas
It will also work on an image which has been rotated around its center to, say, straighten it
Works on a single layer document (e.g. a jpg image) which is still rotated (i.e. do not rasterize the layer after rotating it)
Macro may be useful to those that have to do a lot of straightening of images or in a batch file where hundreds of the same size images need straightening by the same (rotation) amount.
The macro has about 7 steps unticked and new ones added as it was crashing on documents of about 20,000px (width) due to the inPainting steps so had to do that part another way.
This is not a generic "Crop to Opaque" macro - it will only work on images that have been straightened via the Crop Tool or rotated on the canvas.
Crop to Opaque after Straightening or Rotating - V3.afmacros