Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Image Processor script making mistakes in custom Task processing.

Community Beginner ,
Feb 08, 2017 Feb 08, 2017

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:

1.jpg

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:

1.jpg

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):

16.jpg

18.jpg

43.jpg

39.jpg

36.jpg

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

543
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 10, 2017 Feb 10, 2017

The recorded »center« apparently centers according to what’s visible on screen, not the whole document.

Translate
Adobe
Community Expert ,
Feb 08, 2017 Feb 08, 2017

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 08, 2017 Feb 08, 2017

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

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 09, 2017 Feb 09, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2017 Feb 09, 2017

Changing the resolution via Image > Image Size with »Resample Image« turned off will not cause image degradation as the actual pixels are left unchanged.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 09, 2017 Feb 09, 2017

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?

6.jpg

7.jpg

9.jpg

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:

mistakes.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2017 Feb 09, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 09, 2017 Feb 09, 2017

I think so yes. How can I check the pixel dimension? I added the exact picture specifications bellow:

specifications.png

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:
succes task.png

Failed:

failed task.png

I also printscreened the expended action, it is about action WFD 5:

action wfd 5.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 10, 2017 Feb 10, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 10, 2017 Feb 10, 2017

c.pfaffenbichler​, sorry forgot about that. Here by the steps again but now expanded.

expanded.png

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 10, 2017 Feb 10, 2017

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 10, 2017 Feb 10, 2017

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!!!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 10, 2017 Feb 10, 2017
LATEST

The recorded »center« apparently centers according to what’s visible on screen, not the whole document.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines