Closed (fixed)
Project:
IMCE
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2020 at 12:53 UTC
Updated:
27 Jul 2020 at 14:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
paulsheldrake commentedThe following is a patch for the latest release tag 7.11 that adds a new scan function "imce_scan_directory_standard_image_size". This function does not attempt to get accurate image sizes but uses a default for all images.
It creates a new config variable "imce_file_browser_default_image_size" which takes an array where you can change the default size to what you wish. Currently, it's set to 400x400. One thing to note however is that when the image preview loads that the image still maintains the correct proportions so it's nice that way. On images smaller than 400px in one dimension they do get upscaled which causes artifacts to show in the preview.
To use the new function you can update the settings.php file to have the following
Comment #3
thallesHi @paulsheldrake, something like this has been implemented and is in the dev branch.
Thanks for you patch!
Comment #4
thallesSee: #3084709: Add disable switch for image metadata fetch
Comment #5
thalles