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

Handling of images

Re: Handling of images

7 years 4 months ago
#24189
ernst67 wrote: Is it possible to crop images after upload, but before they are stored?

I fell in love with the way Eventbrite does this. In JEM there is often a discrepancy between the event image that you want to display in detail view and the one you want in list view. Mostly the last one needs to be in a fixed px x px format to keep the list view clean and sharp.

That is exactly how I would like to see this.
1. the thumbnails should have a fixed aspect ration. i.e. they all should be square in the list view and not the ratio of the original image, to keep the list view overall consistent (I'll post a question on this in a separate thread)
2. preferably the the image in the detail view should be the same size on all pages (here you could achieve this with css, with the image in a box, like I did on my site)
3. as I stated in the beginning of this threat the file size limit is drawback for the enduser

Resizing is best done on upload, or maybe even beter on save.
The following user(s) said Thank You: jojo12

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

Re: Handling of images

7 years 4 months ago
#24191
After looking a the GitHub project for the Zebra Image library, I found that the resizing of the large image shouldn't be that difficult. It is just a matter of defining an output directory and image size for the large image.

github.com/stefangabos/Zebra_Image/issues/10

So a scenario could be:
  1. Let the user upload an image of his choice.
  2. Store this image in a temp directory (i.e. 'originals' or 'src')
  3. When creating a thumb, also resize the original to a large size, defined by the settings in JEM. (You could also define a medium size image size, which can be uses when viewing on a mobile device.)
  4. Store the resized images in their subsequent folders.
  5. At some point have the original deleted, to free up space on your server
The following user(s) said Thank You: jojo12

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

Time to create page: 0.527 seconds