Laravel 8 UniSharp File Manager 3 - image uploaded but not showing - laravel-5

When I upload some files with LFM, the images are uploaded in a new folder created in storage/app/public/photos/shares and thumbnails in a nested folder thumbs. BUT the images thumbnails are not showing in the FM, only the filenames under a blank image.
1/ How can I fix that?
2/ Under the images there is a little blue box with number 1 inside . What is that? I can I get rid of it?
3/ I also find strange that the images are stored in a "shared" folder although this is set to false in the /config/lfm.php. Do I have to edit unisharp/laravel-filemanager/src/config/lfm.php as well? Or should I delete the one in /config?
'allow_shared_folder' => false,
'shared_folder_name' => 'shares',
4/ I also do not want that location for the upload. Instead I want the images stored in /public/images/uploads and same for the files into /public/files/uploads. Where do I change these paths?

change your APP_URL="localhost" to your port (for ex : APP_URL=http://127.0.0.1:8000)

In config folder
open filesystem.php
replace './storage' instead of storage_path('app/public')

Related

laravel 5.2 thumbs on the fly

I am using a class which requires 3 things to be declared. It will make thumbs on the fly (ImageMaker.php). I have placed this in the public directory renamed to IM.php and my images are in the public area also in a subdirectory called images.
Image maker requires 3 things to be declared:
define('IMAGEMANIPULATOR_CACHE', "/_cache" ); # Relative to this file path without trailing or prepending slash; don't forget to set the right permissions to this directory
define('IMAGEMANIPULATOR_BACKUP', "/images/backup.jpg" ); # The image to display when on the fly image isn't found; relative to this file path without prepending slash
define('IMAGEMANIPULATOR_PATH', "/images"); # The folder to look for images in when displaying images on the fly; without prepending or trailing slash
To show an image the souce becomes
IM.php?onthefly=filename&resize=0,60
I have used this is a non-laveral environment without problem. The image names (without a path) are from a table and I will be using this in datatables.
So in theory it becomes
<img src="IM.php?onthefly={{ $items['url'] }}&resize=0,60">
except it does not work!
This is in a view.
Help appreciated!

Magmi import images with different file extension

I am using Magmi to import products into Magento.
I upload all images to local folder (media/import) where files are either .jpg or .gif.
Images are named:
[sku.jpg] OR [sku.gif]
I have now configured Magmi so it imports all jpg images and this works fine.
This is how my CSV looks (only image columns):
image,small_image,thumbnail
sku,sku,sku
I am then using "value replacer" plugin to insert .jpg behind every sku in image columns. This also works fine.
Is it possible to also search for .gif in same import, so it either finds a sku with file extension .jpg or .gif ?
This is untested, but I'm sure you'd be able to do something like this:
+{{ (file_exists({item.sku} . '.gif') ? {item.sku} . '.gif' : {item.sku} . '.jpg') }}
I don't know the full location of the images, so it might need tweaking a bit, but the idea behind it should be correct.

Pictures are not imported

I am having an issue in Magento where my pictures are not being uploaded even though rest of the fields gets properly imported.
I don't know what's the path that I should specify for my pictures in order to get uploaded.
In my feed file I have something like this: /test.png or just test.png and I have tried to copy the image to the \var, \var\import, \var\importexport
Assuming you're using the default CSV-Import try to put them in media/import.

Magmi is cannot find multiple images

I've Googled, and Stackoverflowed this to death (and checked the Wiki), but I can't find a solution to my problem :(
Problem:
With Magento Magmi: all products and single images are importing fine, the only catch is that Magmi throws the following error when I try to import multiple images (e.g. /BJ977L.png,/BJ977R.png):
Image attributes processor v1.0.25 - /BJ977L.png,/BJ977R.png cannot be found in images path
Obviously I checked and the files are there... Also, if I change it to only reference one image, then it works. I find this very confusing.
The images are located in: media/import and the Magmi Image Plugin configuration reflects this. Also, if I move the images to another folder, say var/import/images; then it makes no difference...
Your help is hugely appreciated!
Thanks in advance!
As the Images Attribute Processor documentation states, you should be using a semi-colon ; to separate multiple images.
/extraimg1.jpg;/extraimg2.jpg
Also ensure that the column names you are using are correct. media_gallery is the correct column header name for the media gallery images.
Have you tried using semi colon?
/BJ977L.png;/BJ977R.png
Have you tried using the complete file path to the images? Also, did you specify the file path root for the images in the plugin settings?
If you have formatted the .csv file the right way then you should check the Image Renaming setting for the Image attributes processor. If you specify a bad rule to rename your newly imported images you could end up with the same name for every picture. So basically the first image will be imported, then the second will overwrite it because it was given the same name. If you only see the last picture you specified for the media_gallery attribute then this is probably the cause.
Hope this helps.

Magento: Change default product image with PNG

In order to replace default product image in Magento, we have to replace images in this folder:
skin\frontend\mytheme\default\images\catalog\product\placeholder
There are 3 files:
image.jpg
small_image.jpg
thumbnail.jpg
I need to replace those files with PNG. Where is the code that I can change the .jpg part?
In the admin, under System > Configuration > Catalog > Product Image Placeholders, you can upload any file you want.
Just do add information to the reply - the images are stored originally in the path: bdebela/skin/frontend/base/default/images/catalog/product/placeholder.
Names and sizes:
image.jpg (262 x 262)
small_image.jpg (125 x 135)
thumbnail.jpg (50 x 50)
I have uploaded placeholder images from admin but still not showing. I have cleared cache from backend, deleted /media/catalog/product/cache folder with no luck.
Finally, I fixed it by copying my new placeholders at skin/frontend/default/MY_THEME/images/catalog/product/placeholder.
where MY_THEME is my currently active theme.

Resources