imageapi_optimize_binaries_[binary] with wrong $dst parameter

Created on 16 February 2017, about 8 years ago
Updated 21 February 2025, about 1 month ago

Hey guys,

I'm trying to make this module work. I've installed Jpegoptim on my server.

Now when I upload an image (jpeg type of course), Jpegoptim (imageapi_optimize_binaries_jpegoptim) doesn't always seem to get called with the correct $dst parameter.

Often, the $dst parameter looks like this : '/home/clients/c6425d6e87e3c4ed608702674cb684de/tmp/php16D5Ii' , which looks correct. By the way, this is not the folder I configured for my temp files, but that's not the question for now.

But for some images, $dst parameter looks like this : '/home/clients/c6425d6e87e3c4ed608702674cb684de/web/www/test/sites/default/files/styles/thumbnail/public/Lauper_MS_DSC9285.jpg' , which is actually the thumbnail file for the content editor. And then, my image is not compressed at all.

The attached file "Lauper_MS_DSC9285.jpg" is an example in which it doesn't get a correct $dst parameter.
The attached file "Lauper_MS_DSC9278.jpg" is an example in which it gets a correct "tmp" $dst parameter, so it works.

What are the differences between theses 2 files, and why doesn't it work in any case ?

Thanks in advance, hope I made it clear

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland Shaylen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States greggles Denver, Colorado, USA

    Closing after a while without a response to the question in #2.

    If this is still relevant for currently supported versions of the module, please reopen it.

Production build 0.71.5 2024