Problem/Motivation

IMCE browser not opening for a large number of image files. Because for every file IMCE trying to get image size which is causing PHP timeout issue.

Proposed resolution

Providing a common setting to disable get image size call than pass default width and height.

Issue fork imce-3134212

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rahul.nahar001 created an issue. See original summary.

rahul.nahar001’s picture

StatusFileSize
new3.43 KB
thalles’s picture

What will be a large numbers of images?

thalles’s picture

I tested with 4877 images, and if you use thumbnail is realy slow, but if you use a list simple, the time of load is good

rahul.nahar001’s picture

Hi There are 2 scenarios

  1. We have enabled s3fs module
  2. We have around 20k+ images
thalles’s picture

So, to test this, do I need an AWS account?

rahul.nahar001’s picture

Yes, This issue occurs when we point the file system to the S3 bucket. So you need an AWS account to replicate this issue.

thalles’s picture

Status: Active » Needs work

This feature, like was implemented, broken the resize feature

paulocs’s picture

Assigned: rahul.nahar001 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new4.3 KB

Hello,
follow a new patch!

thalles’s picture

StatusFileSize
new265.56 KB

Apparently, there is still a bug in resizing, see:

thalles’s picture

Status: Needs review » Needs work
paulocs’s picture

Status: Needs work » Needs review
StatusFileSize
new5.59 KB

Follow a new patch!

thalles’s picture

Status: Needs review » Reviewed & tested by the community

Works fine to me!
Thanks @all for this amazing job!

  • thalles committed da4007f on 8.x-2.x authored by paulocs
    Issue #3134212 by paulocs, rahul.nahar001, thalles: IMCE browser not...
thalles’s picture

Status: Reviewed & tested by the community » Fixed
rahul.nahar001’s picture

Hi @thalles,

Is there any plan for a new release?

thalles’s picture

Assigned: Unassigned » ufku

I will create a issue to this, but I don't heve permission to this

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

pawel_r’s picture

Patch for IMCE 2.4. It removes all info from image: size, date width and height. Thumbnail feature will not work.

manish.upadhyay’s picture

Hi,

Here is the patch for D10 compatible version.

Thanks,

sany_86@bk.ru’s picture

StatusFileSize
new4.5 KB

It looks like all the patches simply remove all information from the image: size, date width and height. And miniatures too.

I would like to bring to your attention a slightly different approach to solving this problem. Instead of simplifying the display of pictures and disabling information about them, you can simply add a pager ("Prev" and "Next" buttons) and display, for example, 50 pictures at a time.
Maybe this will be useful for someone.