You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tested this package with Laravel 10, the image is displayed but with none of the configuration applied such as: resize, rotate, colorize.
I like to know what could be wrong on my end. Also, the rendered image path follows data-src instead of src attribute, which doesn't make sense to me. Path must be set to the actual path defined in the disk. Why the use of disk then?
As you can see in the config below, I have to set the path to the actual directory folder as defined in the disk as well for the image to be displayed (as indicated in the first view above), although without being resized and none of the other settings applied. I thought the data-disk attribute resolves the base path for the image.
Hi, I've tested your setup and there is an issue with the filename I guess, can you remove the space please. I also use the real storage path of my application and not a subfolder of the public path ... Is it meant to be the public path ?
Assessing the image isn't the problem. I tried again, and the image only got displayed when I use the real image name in data-src rather than src attribute. I found out that the image root is controlled by the path in the config, whereas the src attribute on the x-smart-image element is useless in my setup.
I think the installation isn't working as expected. I suspect ffmpeg dependency as the culprit here. I was using a package with Intervention dependency. Resizing works only on my localhost because I had ffmpeg setup. When I deployed on linux server where I had no ffmpeg setup, resizing stopped working.
I tested this package with Laravel 10, the image is displayed but with none of the configuration applied such as: resize, rotate, colorize.
I like to know what could be wrong on my end. Also, the rendered image path follows data-src instead of src attribute, which doesn't make sense to me. Path must be set to the actual path defined in the disk. Why the use of disk then?
Example:
Blade view
<x-smart-image src="6Tq99mBdQZTiLGy1udDpxkfgSWB8XjTrNJLRYLZv.jpg" data-template="rotated" data-disk="photo" data-src="6Tq99mBdQZTiLGy1udDpxkfgSWB8XjTrNJLRYLZv.jpg"/>
This above image is displayed in its full size
Blade view (not working)
<x-smart-image src="6Tq99mBdQZTiLGy1udDpxkfgSWB8XjTrNJLRYLZv.jpg" data-template="rotated" data-disk="photo" data-src="sample image.jpg"/>
The above image is not displayed
As you can see in the config below, I have to set the path to the actual directory folder as defined in the disk as well for the image to be displayed (as indicated in the first view above), although without being resized and none of the other settings applied. I thought the data-disk attribute resolves the base path for the image.
Config Setup
Any help will be much appreciated. Thank you.
The text was updated successfully, but these errors were encountered: