Image not found in laravel - laravel

My application is displaying images perfectly as I am displaying them on the other pages.
I need to apply a watermark on all of those images.
Whenever I try to get the image dynamically to manipulate it gives me the error 404 not found.
However, the link is similar to all other images displaying on the website.
I have tried Image intervention It works fine for the images in public/img folder
but id does not work for the images in the storage/app/products folder.
link:http://usm.gondalgroup.com/refurbished_tetra_pak_machines_supplier_home
working link obtained by inspecting image:http://usm.gondalgroup.com/storage/app/products/pRComIu5U3TkCSppb2PsjxtkcmgpFk4ZGbq4mbRt.jpeg
The link I made using controller and loop: http://usm.gondalgroup.com/storage/app/products/B6ITcW8iA4gyVKbqylw3qweGsqTLMjslIyyvIjes.jpeg

Related

Domain in image url and problems with uploading some images

Domain in image URL and problems with uploading some images,
I need to have all the images I upload be referenced through their full web URL (ie: http://www.mywebsite.com/images/image/myimage.jpg). By default, CKEditor only goes for /images/image/myimage.jpg. I found a way to work around this by putting the domain name in the upload file path, however, I think this is causing some files not to be uploaded.
What is the best way to get the domain name in all uploaded image paths and still be able to upload all files?
enter image description here

laravel file manager not showing uploaded image

I am new to laravel file manager and I'm developing a blog using tinymce5 and this package.
Everything works just fine. But...
The problem:
The problem is that none of the uploaded images are being shown. neither in file manager "when it's uploaded" nor in the blog.
image is not shown in file manager :
What I have done:
Well the problem is caused by the image url. The url is the url below:
http://localhost/storage/photos/maxresdefault.jpg
When I changed it to:
http://127.0.0.1:8000/storage/photos/maxresdefault.jpg
everything worked fine.
The Question is:
Is there any way to force laravel file manager to save image urls using "127.0.0.1:8000" instead of "localhost"?
Or is there any way to load images using a more efficient method?

Laravel storage image on server is not showing

Hello laravel storage link image is showing perfectly in localhost and when i upload the project to shared hosting images are broken. To show images i have been using this syntax
<img src="/storage/users_image/{{$user->users_image }}"
the above one works great on localhost on shared hosting this images are broken to solve i make storage link but images are broken again on broken images it shows https://www.yuvxyz.com/storage/users_image/xxxy.png
note i have uploaded public and other folders on different folders.
Finally i got the solution from YouTube and it works i have created symlink then it worked here is the PHP file

Displaying an image in Web browser, Ubuntu

I want to display an image on my website.
My website is located in
/var/www/html/mywebsite
The image is located in
/home/user/directory/image.png
I am using codeIgniter and Image src I am passing is same as above.
File/directory permissions are proper but still I am unable to display an image.

Laravel Image error

Hello can anyone help me with this problem in laravel?
In local server when I upload image it is working but in live server it is not working because of this problem:
[2015-05-22 10:38:23] production.ERROR: exception 'Intervention\Image\Exception\NotWritableException'
with message
Can't write image data to path (/var/www/vhosts/domain-name/httpdocs/mainsource/img/courses/1432291103.jpg)
and if i create a folder inside mainsource img/courses image will be saved but doesn't show in the page.
Also i have the same folder img/courses in public from which also my courses page reads images and shows images.

Resources