No Code Attached Yet J3 Issue
avatar joelsan
joelsan
31 Aug 2018

Steps to reproduce the issue

Prepare a folder in /images with many hi-res images, I used one with 1184 images with circa 2000x1500 px. Size 438MB
Just login to administrator of a Joomla 3.8.x site with permissions to manage media
administrator/index.php?option=com_media
and navigate to the folder mentioned

Expected result

List of image thumbs in that folder

Actual result

The result it's OK, I've just some observations in Additional comments section

System information (as much as possible)

You need a folder with many hi-res images.
I used one folder with 1184 images with circa 2000x1500 px. Size 438MB

Additional comments

This is not really a bug, just something to be aware.

All images in that folder are downloaded to show the thumbnails, In this case it took forever and 400MB.
I know this could be avoided by each item having his own images folder.
However, this is a real site, and the clients don't have the kind of knowledge we do and are usually difficult to predict.
It's my/our job to don't let situations like this occur. I can find a workaround in my end but this should be addressed in the com_media component.
I don't really have the answer but I'll leave some ideas:

  • Pagination could help, but the problem remains(however less severe) if you have to navigate page by page to find the image.
  • Pagination with search and/or ordering filter by relevant fields
  • If images exceed value n force detail view only with file name, maybe fetch the image by ajax on mouse over
  • A image cache with redimensioned thumbs, will need CPU power/time to resize first time.
  • Could be optimized if we join some of the ideas, like cache and pagination.

This is my first time posting, Hope I'm not doing it wrong.

Keep up the good work guys.
Joel

screen shot 2018-08-31 at 13 11 53
screen shot 2018-08-31 at 13 12 34
screen shot 2018-08-31 at 13 11 53
screen shot 2018-08-31 at 13 12 34

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
4.00

avatar joelsan joelsan - open - 31 Aug 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 31 Aug 2018
avatar mbabker
mbabker - comment - 31 Aug 2018

TBH I think the best we might be able to do in the context of 3.x is stuff a lazy loading script into the media manager and media field so the penalty of those large folders is less extreme. With us starting to stabilize 3.x for LTS and 4.0 coming up (including a reworked media manager), I personally wouldn't suggest putting a lot of time and effort into large changes in the current system.

avatar joelsan joelsan - change - 31 Aug 2018
Title
Media manager - folder with many images
Media manager - folder with many hi-res images create big download size
avatar joelsan joelsan - edited - 31 Aug 2018
avatar joelsan joelsan - change - 31 Aug 2018
Title
Media manager - folder with many images
Media manager - folder with many hi-res images create big download size
avatar joelsan
joelsan - comment - 31 Aug 2018

Speedy reply. :)
Well, I hope it could be useful to have in mind when coding in the reworked media manager.
Thanks for your attention

avatar franz-wohlkoenig franz-wohlkoenig - change - 31 Aug 2018
Status New Discussion
avatar brianteeman brianteeman - change - 31 Aug 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 31 Aug 2018
avatar Milglius
Milglius - comment - 11 Dec 2018

@mbabker @joelsan can you provide code for pull request for joomla 3.9,2 to stuff a lazy loading script into the media manager and media field?

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Apr 2019
Status Discussion Information Required
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Apr 2019

@joelsan can you please answer?

avatar joelsan
joelsan - comment - 2 Apr 2019

@Milglius & @franz-wohlkoenig , are you asking me to contribute my own code to the Joomla project?
If so , I'll think about a solution in the weekend and let you know.


@mbabker @joelsan can you provide code for pull request for joomla 3.9,2 to stuff a lazy loading script into the media manager and media field?

@joelsan can you please answer?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Apr 2019

@mbabker @joelsan can you provide code for pull request for joomla 3.9,2 to stuff a lazy loading script into the media manager and media field?

i was asking cause of this comment.

avatar Milglius
Milglius - comment - 24 May 2019

is there a contribution to test this code?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 24 May 2019

@Milglius there is no Pull Request.

avatar jwaisner jwaisner - change - 11 Mar 2020
Status Information Required New
Build master 4.0-dev
avatar brianteeman
brianteeman - comment - 23 Aug 2022

Thank you for raising this issue.

Joomla 3 is now in security only mode with no further bug fixes or new features.

As this issue doesn't relate to Joomla 4 it will now been closed.

If we are mistaken and this does apply to Joomla 4 please open a new issue (and reference this one if you wish) with updated details for testing in Joomla 4.
cc @zero-24

avatar zero-24 zero-24 - change - 23 Aug 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-08-23 13:45:14
Closed_By zero-24
Labels Added: No Code Attached Yet
Removed: ?
avatar zero-24 zero-24 - close - 23 Aug 2022

Add a Comment

Login with GitHub to post a comment