Copy link to clipboard
Copied
Hi everybody,
I started using the image processor script to run a custom task on an folder with images. All the images in the folder are the same size and file format.
Now the strange thing is that there are mistakes in the processing on about 34% of the images. The mistakes are not the same in all the images and seem so random.
To understand first the stock image, no processing applied:
Now this is how the image should look after the task processing is completed, 66% of the images turned out good like this on the first try:
Then some examples of the 34% of images with mistakes, there are different kind of mistakes but they all have to do with applying the opaque fill in a wrong way
one picture also gets nothing applied at all (the last one):
I did try to run the custom task again on the images that had mistakes and the result was exactly the same, mistake remained the same in every image. I re-created the task under a different name and did run the task again and now a big part (70%) of the images that had mistakes were turning out ok good still arround 30% of the images had mistakes again.
I compared all the file specifications of the images that are having no mistakes and the mistaken one but cannot find a patern. The specifications are the same and I cannot see why some images are failing while other are fine. Did anybody encounter anything like this before and happens to know a solution?
Thanks in advance for the help!
Kind regards,
Ray
1 Correct answer
The recorded »center« apparently centers according to what’s visible on screen, not the whole document.
Explore related tutorials & articles
Copy link to clipboard
Copied
Please post a screenshot pdf the expanded Action in the Actions Panel or the atn-file itself.
Do the incorrectly processed images have the Layers they should have at incorrect positions?
Copy link to clipboard
Copied
I would think if the mistakes are the same each time that the problem may have to do with the way the resizing by fit image for different size images. Are you sure all images are the same size and resolution to begin with. A 4x6 300dpi image has somewhere 10 times a 4x6 72dpi image. If you are not saving layered files try adding a flatten as the last step your action does
Copy link to clipboard
Copied
JJMack and c.pfaffenbichler​, thank you for your replies, size was all the same I just found out DPI was not the same. Thanks to this I spotted where it goes wrong. Most if my images are 72DPI these all turn out ok. Other images are 2, 96, 100, 120, 300 and 350 DPI, is it safe to change all my images to 72DPI and will this mess up the quality of the images if the value used to be higher as 72DPI?
If its safe how would you recommend me to change the DPI value to 72 for all files? I tried adding flatten as last step in my action, this did not help, mistakes remained the same.
Copy link to clipboard
Copied
Changing the resolution via Image > Image Size with »Resample Image« turned off will not cause image degradation as the actual pixels are left unchanged.
Copy link to clipboard
Copied
c.pfaffenbichler​, I did that and the DPI of all images is 72 now, I runt the DPI action on all images to make sure they are 100% the same. I ran the batch again and now some images (36 out of 83) show a different problem see bellow. All the images with a problem show the exact same problem now, do you have any idea why this can be?
Mistakes seem te happen in a row, I selected all the mistakes in the folder so you can see that it they are in a row:
Copy link to clipboard
Copied
So the images definitely have the same pixel dimensions and the same resolution?
Please post a screenshot pdf the expanded Action in the Actions Panel or the atn-file itself.
Copy link to clipboard
Copied
I think so yes. How can I check the pixel dimension? I added the exact picture specifications bellow:
I also opened the image dimension in photoshop of 1 image that was succesfull in the task and 1 that failed. To me it looks the same:
Succes:
Failed:
I also printscreened the expended action, it is about action WFD 5:
Copy link to clipboard
Copied
The individual steps are not expanded so one cannot tell what exactly you recorded.
Do the »Set Selection« parts work as expected?
Is the issue the »Place«? If so what are the parameters exactly?
If the object should be centered you could just include some aligning in the Action.
Copy link to clipboard
Copied
c.pfaffenbichler​, sorry forgot about that. Here by the steps again but now expanded.
Set selection is in the correct position, these are the opaque layers and they are in the correct location on every image. Place is the text itself and that is in the wrong location. Place is to much to the left and to the top. How can I center with some aligning in the Action, at place its says Center:center already? If the placemend is correct in the example file that I used to make the action then it should be correct on all the images that are the same size right?
Copy link to clipboard
Copied
Please try using the Action Panel’s »Insert Menu Item« (from the flyout menu) to start the Action with View > Fit on Screen.
Does this make a difference?
Copy link to clipboard
Copied
c.pfaffenbichler​, yesssssss that solved it. All images are perfect now Thank you so much for your help, would have never solved the DPI and Fit on screen issue without you!!!
Copy link to clipboard
Copied
The recorded »center« apparently centers according to what’s visible on screen, not the whole document.

