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.
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
what you need.
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)
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 originsl 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.
The original and the thumbnail are only deleted wh en they aren't used anymore in JEM (inclusive Archive) and only when you use the buttons for that in the "Housekeeping".
the original image is only used for lightbox
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.
on JEM 2.3.0 stable in latest Joomla (3.9.22) Protostar php7.4.5
If you find JEM useful and if you use it on your site, please consider a donation to the project.
You are not logged in.
JEM and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.