White response on first style generation

Created on 14 July 2022, almost 2 years ago
Updated 15 August 2023, 11 months ago

Problem/Motivation

After creating the file, the file size is also cached, after optimizing the file with gd, file size on cache not changed, probably this is a bug of gd library. If the quality is set by default as 100%, the file size may be larger than before and this creates a problem, as the browser stops downloading the file when the Content-Length is greater than specified in the response.

Steps to reproduce

1. Set up quality as 100
2. Upload file screenshot from MacOS 12.4(it also happens to me with other files, but randomly, for screenshots always)
3. Upload first time image on a page or directly.

Proposed resolution

Right after creating web copy of image need to clear static cache for this file
clearstatcache(TRUE, $destination);

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

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.

Production build 0.69.0 2024