help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Feature requests for JEM 2.0 - initial public release

Better image handling

Better image handling

4 years 1 week ago - 4 years 1 week ago
#27875
I'm not to fond on how the upload and resizing of images with JEM are handled.
1 - Now a user can upload unlimited images with an event, because images are not saved with the event, but with the upload. (The upload is handled in a separate modal window) So one can upload an image, open the upload again and upload an other image. The first upload is not removed, leaving orphaned files on your server.
2- The user is limited by the file size in the settings. What you would like to see is consistent size in width and/or height so the items in the frontend have a consistent look. I would suggest a file resize after saving an event with width and/or height set in the settings of JEM. My users are constantly asking why they the get the file size limit warning and have to resize an image on their local computer before they can upload.
3 - Also I would like to see a renaming of images. Now one can upload al file called dsc2378492.jpg which is impossible to find and reuse. I'd rather have a filename that has the title (alias) of the event in the name with the unique id of the event.
4 - Maybe even beter: create a folder for each user and upload all images of events the users creates in that folder. In that way a user can easily reuse his own images and all the images of all the events are to stored in one big folder. (In my case I've been using JEM and it's predecessor heavily and my image folder now contains more than 13.000 images…)

Can someone point me to documentation or example files to create a plugin for image handling onSave? I'm not a super briljant coder, but at least could give it a try trough a plugin.
Last edit: 4 years 1 week ago by stevent.
The following user(s) said Thank You: Wolfgang

Please Log in or Create an account to join the conversation.

Re: Better image handling

4 years 1 week ago - 4 years 1 week ago
#27876
Doei stevent,

That are valid proposals.
Specially No 1 is a threatening bug, because that could be used to stall a server.

Unfortunately we are currently short on developers and the main focus must be on compatibility to Joomla! 4 and PHP 8.
Therefore your will to develop a helpful plugin on your own is very welcome. Please share your sources.

I am not yet a developer for JEM and did not dig into the sources, but maybe you will get some help from others here or you find on GitHub JEM-ProjectGitHub what you need.

Groetjes,
Wolfgang
Last edit: 4 years 1 week ago by Wolfgang.

Please Log in or Create an account to join the conversation.

Re: Better image handling

4 years 1 week ago - 4 years 1 week ago
#27878
stevent wrote: In my case I've been using JEM and it's predecessor heavily and my image folder now contains more than 13.000 images…

That is quite a lot. Do you need all of them?
Maybe you might consider deleting rather old archived events.
Last edit: 4 years 1 week ago by Wolfgang.

Please Log in or Create an account to join the conversation.

Re: Better image handling

4 years 1 week ago
#27880
I did clean up orphaned files (as noted in point 1) by hand by matching my database jem-events table with the file listing in the directory. Still we have a lot of files. We have 1200 events a year in our database. But yes we need the archive. (At least for ourselves)

Please Log in or Create an account to join the conversation.

Re: Better image handling

4 years 1 week ago
#27881
I see, maybe quite a lot of manifolds, therefore your suggestion 4?

Please Log in or Create an account to join the conversation.

Re: Better image handling

3 years 11 months ago - 3 years 9 months ago
#27904
I am trying to understand how JEM is treatening lmages:
With Zebra_Image.php (there is a newer one) it uploads an original to an original place. The original needs to be smaller than the size in the settings.
After that Zebra_ takes the Original and resizes the original image and saves it to the given subfolder /small. This resize is following the instructions in the settings for thumbnails. This is done only when opening the simplelist.
The original and the thumbnail are only deleted when they aren't used anymore in JEM (inclusive Archive) and only when you use the buttons for that in the "Housekeeping".
EDIT:
the original image is only used for lightbox

EDIT2:
no, the original image is used too in the detail views
the thumbnail image for the image in the simplelist

how it is used in the modules I didn't look.
Last edit: 3 years 9 months ago by jojo12.

Please Log in or Create an account to join the conversation.

Time to create page: 0.652 seconds