I’m a little embarrassed that I have not figured this issue out, but I have looked at it so long that it has become a scenario of “not seeing the forest for all the trees”.
I have a customer that has around 48K+ images that are all within a recursive hierarchy. In order to make things work, I modified your script that you have created to allow for looping thru an array of paths to the images. The first always completes correctly, but the second fails every time. The following is the output that I am seeing.
/virtuals/tmp/media/pickadoll-logo.jpg --> /virtuals/tmp/media2/pickadoll-logo.jpg
...............
12238 --> 11728
-4.17%
/virtuals/tmp/media/images/about_us_main_1.jpg --> /virtuals/tmp/media2/images/about_us_main_1.jpg
................Invalid progressive parameters at scan script entry 5
Died at jpegOptimize.pl line 149.
I have attempted to modify the failing image individually and it is successful. I removed the first result you see in the example, thus making the one in the example that failed the first, and it was successful and the second again fails.
I am assuming that this is something related to variable not clearing from the previous optimization, but I am just not finding it.
Any assistance that can be offered would be sincerely appreciated.
I’m a little embarrassed that I have not figured this issue out, but I have looked at it so long that it has become a scenario of “not seeing the forest for all the trees”.
I have a customer that has around 48K+ images that are all within a recursive hierarchy. In order to make things work, I modified your script that you have created to allow for looping thru an array of paths to the images. The first always completes correctly, but the second fails every time. The following is the output that I am seeing.
/virtuals/tmp/media/pickadoll-logo.jpg --> /virtuals/tmp/media2/pickadoll-logo.jpg
...............
12238 --> 11728
-4.17%
/virtuals/tmp/media/images/about_us_main_1.jpg --> /virtuals/tmp/media2/images/about_us_main_1.jpg
................Invalid progressive parameters at scan script entry 5
Died at jpegOptimize.pl line 149.
I have attempted to modify the failing image individually and it is successful. I removed the first result you see in the example, thus making the one in the example that failed the first, and it was successful and the second again fails.
I am assuming that this is something related to variable not clearing from the previous optimization, but I am just not finding it.
Any assistance that can be offered would be sincerely appreciated.