Well, one can automate Crop and Straighten
but I don’t see how one could avoid the straightening with that.
Maybe one could work around with a Selection and Path; could you post an example to show what the background is like?
Thanks for replying. I had a look at that post but its not helpful.
Automating is not a problem - action can do that.
What I'm after is just a cropping tool which is embedded in the Crop & Straighten Automatic Script.
I have 700 snaps of the SUN on a black background. When I execute the Crop & Straighten Automatic Script over my original images, cropping does a fantastic job however the straighten or rotation part of the scripts just
messes all the snaps. It rotates the SUN's image with an arbitrary angle.
I just don't understand why PS developers would come out with a non-interactive automation script for photographers who do not necessarily require the rotation part. Just messes my workflow.
All other custom scripts I have seen over the web for cropping use the below given code - all it does is crop and rotate.
// crop and straighten; var idCropPhotosAutozerozerozeroone = stringIDToTypeID( "CropPhotosAuto0001" ); executeAction( idCropPhotosAutozerozerozeroone, undefined, DialogModes.ALL );
What the Script in the thread does, that may be less convenient with an Action, is save the resulting files (if I understand correctly).
Edit: And there is a size restriction …
Like I said there are other possibilites – though admittedly less comfortable.
If the background color is pretty constant across all pages a solution using the subPathItems of a path created from an automated selection could be a possibility.
Thanks for replying back. Yes the background colour is always black with the SUN being a orangish yellow disc.
So how does this alternate technique work ?
I’m optimistic that wIth a proper Script one can automate the steps
• make selection
• convert to work path
• evaluate the work paths subpathitems
• based on those create and clip copies
• save those copies
But like I said please post an exemplary file.
So is there always only one image of the sun on an image you want to process?
If so an Action should suffice, record
• Select > Color Range > Shadows
• Select > Inverse
(• possibly Select > Modify > Expand)
• Image > Crop
and then run the Action via Image Processor or Batch.
So does an Action suffice for the task?
You are a legend, c.pfaffenbichler.
It most certainly did work and I learnt a new way of cropping esp for astronomical objects with the same background.
Thank you so much.
I'll post my results in a few minutes. Just processing them now.
Sorry, I had misinterpreted your original post and thought there were more than one image of the sun per file (due to scanning images together for example), otherwise the issue might have been resolved more quickly.
Now you haven't misunderstood, I did have 670 snaps which I needed to crop out the sun from 670 times. Hence the fear of doing it manually.
I cannot thank you enough for providing such a beautiful solution as it certainly helped me to achieve what I wanted to.
Here's the link to the completed product -
2012 Transit of Venus (in Color) - http://www.flickr.com/photos/myshutterworld/7380708070
2012 Transit of Venus (in B&W) - http://www.flickr.com/photos/myshutterworld/7380773608
Thanks a lot once again.
PSSS -- I have given you credits on my description, hope you don't mind
While it is nice of you to do so it is not necessary.