Welcome, Guest
Username: Password: Remember me
Feature requests for JEM 2.0 - initial public release
  • Page:
  • 1
  • 2

TOPIC:

Better image handling 2 months 2 days ago #27875

  • stevent
  • stevent's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 116
  • Thank you received: 31
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.
The following user(s) said Thank You: Wolfgang

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

Last edit: by stevent.

Better image handling 2 months 2 days ago #27876

  • Wolfgang
  • Wolfgang's Avatar
  • Away
  • Moderator
  • Moderator
  • voluntary webmaster since 1996
  • Posts: 71
  • Thank you received: 36
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

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

Last edit: by Wolfgang.

Better image handling 2 months 2 days ago #27878

  • Wolfgang
  • Wolfgang's Avatar
  • Away
  • Moderator
  • Moderator
  • voluntary webmaster since 1996
  • Posts: 71
  • Thank you received: 36

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.

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

Last edit: by Wolfgang.

Better image handling 2 months 2 days ago #27880

  • stevent
  • stevent's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 116
  • Thank you received: 31
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.

Better image handling 2 months 2 days ago #27881

  • Wolfgang
  • Wolfgang's Avatar
  • Away
  • Moderator
  • Moderator
  • voluntary webmaster since 1996
  • Posts: 71
  • Thank you received: 36
I see, maybe quite a lot of manifolds, therefore your suggestion 4?

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

Better image handling 1 month 3 weeks ago #27904

  • jojo12
  • jojo12's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 3334
  • Karma: 45
  • Thank you received: 363
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".
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.
on JEM 2.3.0 stable in latest Joomla (3.9.22) Protostar php7.4.5

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

Last edit: by jojo12.
  • Page:
  • 1
  • 2
Time to create page: 0.356 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......