Closed (fixed)
Project:
IMCE
Version:
7.x-1.9
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Feb 2015 at 21:36 UTC
Updated:
30 May 2019 at 18:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ufku commentedCould be related: #2503797: All files and folders are not being listed in the imce file browser.
Comment #2
srutland commentedAre there a lot image files within the directory that IMCE is opening on? We found that with an AWS S3 bucket that IMCE makes a call to the bucket to retrieve each of the width and then the height of the image. This could potentially be hundreds of calls if you have a lot of files in the directory. We modified the module by turning off the file width and height listing (retrieval) and it significantly sped up the population of the display with the file list.
EDIT: our modification retrieves the image dimensions only when an image is clicked on. That way image sizing operations performed by IMCE can still work. Stay tuned for a patch
Comment #3
ladybug_3777 commentedsrutland ~
Can you provide some more insight on how you've accomplished this task? I'm currently working on optimizations/options for IMCE that will allow working within large image file directories less painful. Within a custom module I've added a cosmetic pager (since it's only cosmetic it hasn't re-gained as much performance as I hoped, so I'm still developing it) and I've added a new tab that will allow us to limit the files displayed based on a year selection. I'd be interested in seeing what you've done too!
Thx!
Comment #4
srutland commented@ladybug_3777
My bad for not responding to this sooner:
I've attached a PDF with the code changes we made to IMCE to handle the height and width parameters that slow down AWS S3 gets. I didn't actually make the changes (our team did), but am passing this along to help the community.
Good luck!
DRUP-D7-IMCEchangedfors3-120417-1240-362.pdf
Comment #5
jerry commentedThis is working fine for me on 7.x-1.11.
Comment #6
thallesThanks @all!
Comment #7
thalles