statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
3.69k stars 508 forks source link

Wrong image path with glide #10493

Open wm-simon opened 1 month ago

wm-simon commented 1 month ago

Bug description

This tag generates the image: {{ glide src="{{ url }}" width='3000' height='1400' fit='crop_focal' quality='70' format="webp" }}

When the image has the same width, like the original image, glide generates this path, but there is no image. Is shows error 404. /img/cache/containers/bilder/landschaft/wm_20180402-1715-_dsc9141_bombachsee-und-wald-bearbeitet_max_3000px.jpg/2b5ba43607f5110b38173a5a34376e9c/wm_20180402-1715-_dsc9141_bombachsee-und-wald-bearbeitet_max_3000px.webp

When the width is different, the generated path is right and working. /img/cache/containers/bilder/landschaft/wm_20180402-1715-_dsc9141_bombachsee-und-wald-bearbeitet_max_3000px.jpg/9785af8fe2fad228b0d060a54e246c58/wm_20180402-1715-_dsc9141_bombachsee-und-wald-bearbeitet_max_3000px.webp

How to reproduce

Generate an image with glide with the same width like the original image.

Logs

No response

Environment

Environment
Laravel Version: 10.48.16
PHP Version: 8.3.7
Composer Version: 2.5.8
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Livewire
Livewire: v3.5.4

Statamic
Addons: 5
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.17.0 PRO

Statamic Addons
ddm-studio/cookie-byte: 1.5.2
jonassiewertsen/statamic-livewire: 3.6.0
mitydigital/statamic-google-fonts: 2.0.0
mitydigital/statamic-sticky-notes: 1.0.1
nineteensquared/instagram: 1.2.0

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

jasonvarga commented 1 month ago

I can't recreate this.

Can you provide the image?

wm-simon commented 1 month ago

Sure ... https://imgur.com/a/QFs18Jw

duncanmcclean commented 1 month ago

Thanks for uploading the image.

Unfortunatlley, I'm also unable to reproduce the issue. I downloaded the image, copied the Glide tag directly into my template, and the image displayed as expected 🤔

Can you share your config/statamic/assets.php config file?

duncanmcclean commented 1 week ago

Just following up... are you able to provide your config/statamic/assets.php config file?