Skip to content
This repository was archived by the owner on Jul 10, 2026. It is now read-only.
This repository was archived by the owner on Jul 10, 2026. It is now read-only.

Fatal error when jpegrescan loops thru an array #13

Description

@smalenshek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions