Don't store empty files in storage cache because of GD bug

Description

Background

GD throws a fatal on empty files. https://bugs.php.net/bug.php?id=73116 This prevents the fallback image to work.

Solution

Do not write empty files in storage cache.

Technical tasks

None

Deployment actions

None

Status

Assignee

Unassigned

Reporter

Marijn Otte

Product owner

Marijn Otte

Plan date

None

Follow up date

None

Code reviewer

None

Developer

None

Refiner

None

Dev hour estimate

None

Max. hours

None

External issue ID

None

Error message

None

Min. hours

None

Fix versions

Priority

24h
Configure