Crop and Straighten 100s of photos with PS macro

J
Posted By
JAMVideo
Aug 5, 2009
Views
1449
Replies
7
Status
Closed
I have Photoshop CS and I’m trying to crop and straighten 100’s of jpg each with several images on the scan. I made an action that just had the "crop and straighten" and then used the batch function. Unfortunately after it opens and crop and staightens all of the files it gives me an error. When I read the log it is talking about a Thumb.db? I’m not sure what this is or why it’s trying to read this file. Can anyone help?

Many thanks Jonathan

Start Batch

File: "C:\Documents and Settings\Jonathan\My Documents\My Scans \Thumbs.db"
Error: Could not complete your request because Photoshop cannot recognize the file extension. (-25600)

End Batch

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

JJ
john joseph
Aug 5, 2009
JAMVideo wrote:
I have Photoshop CS and I’m trying to crop and straighten 100’s of jpg each with several images on the scan.

What version of CS? CS4 has an automatic align, straighten and parse to make separate images of a single image.

So – what version?
M
macxprt
Aug 5, 2009
On Aug 4, 7:30 pm, JAMVideo wrote:
I have Photoshop CS and I’m trying to crop and straighten 100’s of jpg each with several images on the scan.  I made an action that just had the "crop and straighten" and then used the batch function. Unfortunately after it opens and crop and staightens all of the files it gives me an error.  When I read the log it is talking about a Thumb.db?  I’m not sure what this is or why it’s trying to read this file.  Can anyone help?

Many thanks Jonathan

Start Batch

File: "C:\Documents and Settings\Jonathan\My Documents\My Scans \Thumbs.db"
Error: Could not complete your request because Photoshop cannot recognize the file extension. (-25600)

End Batch

first issue is the thumbs.db file. This is a reference file the OS uses for displaying thumbnails in the OS. You need to either delete the thumb.db file before running the script or set the option in the script to not stop on errors when opening files.
K
Kabuki
Aug 5, 2009
"macxprt" wrote in message
On Aug 4, 7:30 pm, JAMVideo wrote:
I have Photoshop CS and I’m trying to crop and straighten 100’s of jpg each with several images on the scan. I made an action that just had the "crop and straighten" and then used the batch function. Unfortunately after it opens and crop and staightens all of the files it gives me an error. When I read the log it is talking about a Thumb.db? I’m not sure what this is or why it’s trying to read this file. Can anyone help?

Many thanks Jonathan

Start Batch

File: "C:\Documents and Settings\Jonathan\My Documents\My Scans \Thumbs.db"
Error: Could not complete your request because Photoshop cannot recognize the file extension. (-25600)

End Batch

first issue is the thumbs.db file. This is a reference file the OS uses for displaying thumbnails in the OS. You need to either delete the thumb.db file before running the script or set the option in the script to not stop on errors when opening files.

correct>>what he said

Thumb.db stands for thumbs database- windows will create this anew if you delete it>> despite the warning-

it is a file that windows uses to create your thumbnail images in any picture folder
J
JD
Aug 5, 2009
Kabuki wrote:
"macxprt" wrote in message
On Aug 4, 7:30 pm, JAMVideo wrote:
I have Photoshop CS and I’m trying to crop and straighten 100’s of jpg each with several images on the scan. I made an action that just had the "crop and straighten" and then used the batch function. Unfortunately after it opens and crop and staightens all of the files it gives me an error. When I read the log it is talking about a Thumb.db? I’m not sure what this is or why it’s trying to read this file. Can anyone help?

Many thanks Jonathan

Start Batch

File: "C:\Documents and Settings\Jonathan\My Documents\My Scans \Thumbs.db"
Error: Could not complete your request because Photoshop cannot recognize the file extension. (-25600)

End Batch

first issue is the thumbs.db file. This is a reference file the OS uses for displaying thumbnails in the OS. You need to either delete the thumb.db file before running the script or set the option in the script to not stop on errors when opening files.

correct>>what he said

Thumb.db stands for thumbs database- windows will create this anew if you delete it>> despite the warning-

it is a file that windows uses to create your thumbnail images in any picture folder

I believe you can turn off the thumbnail images in Windows XP:

1. Click on "CONTROL PANEL" from the Start Menu.
2. Click on "FOLDER OPTIONS" in the Control Panel.
3. Click the view tab
4. Finally – tick the "DO NOT CACHE THUMBNAILS" box and then click APPLY.

Then when you delete the thumbs.db file it shouldn’t return. You will still have the thumbnail option but they’ll have to be recreated every time.


JD..
J
JD
Aug 5, 2009
JAMVideo wrote:
I have Photoshop CS and I’m trying to crop and straighten 100’s of jpg each with several images on the scan. I made an action that just had the "crop and straighten" and then used the batch function. Unfortunately after it opens and crop and staightens all of the files it gives me an error. When I read the log it is talking about a Thumb.db? I’m not sure what this is or why it’s trying to read this file. Can anyone help?

Many thanks Jonathan

Start Batch

File: "C:\Documents and Settings\Jonathan\My Documents\My Scans \Thumbs.db"
Error: Could not complete your request because Photoshop cannot recognize the file extension. (-25600)

End Batch

http://www.annoyances.org/exec/show/article03-204


JD..
J
JAMVideo
Aug 9, 2009
The advice was very good thank you. I’m still running into trouble though (sorry if this is so trivial). So I have hundreds of files with multiple pictures and really what I want to do is open each file run the "crop and straighten command" then autolevel each picture and then save it. I have PS CS 1 and my action is crop and straighten (I actually took out the auto-level while I’m trouble shooting). Currently the macro opens all of the files and does the "crop and straighten" command but then it does not save any of them. There is no error message in the error log and if I set Errors to just stop on errors it never gives me an error message either. This seems like other people would be doing something similar, but I could not find other examples.

Here are my settings….
http://helpplease.tumblr.com/
JJ
john joseph
Aug 9, 2009
JAMVideo wrote:
The advice was very good thank you. I’m still running into trouble though (sorry if this is so trivial). So I have hundreds of files with multiple pictures and really what I want to do is open each file run the "crop and straighten command" then autolevel each picture and then save it. I have PS CS 1 and my action is crop and straighten (I actually took out the auto-level while I’m trouble shooting). Currently the macro opens all of the files and does the "crop and straighten" command but then it does not save any of them. There is no error message in the error log and if I set Errors to just stop on errors it never gives me an error message either. This seems like other people would be doing something similar, but I could not find other examples.

Here are my settings….
http://helpplease.tumblr.com/

If you do not have a ‘save as’ in the script, then
Make a backup copy of the folder.
Remove the Override "save as" and use save to same folder.

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

Related Discussion Topics

Nice and short text about related topics in discussion sections