Help needed when working with images in C5

Permalink
Hi, this could be posted as a discussion however I am happy to pay for some good solid answers if it can give me professional results and for someone to do the work and show me.

I have a few C5 websites and images are forever giving us issues. The file manager allows users to upload super large images which sometimes break the system, this can sometimes be fixed in the php by limiting the file size, however if the file size is low and the dimensions are large this also breaks the system.

Other platforms like Drupal, have the ability of uploading images, the images are then compressed and resized for the correct sizes in different places / screen sizes. Is there a way we can accomplish the same thing in C5? So when a user uploads an image at the wrong size it compresses and resizes the images automatically?

The images would be used in the Easy Image gallery block, sliders and general image content area.

Please no shady work arounds I am only interested in good solid solutions done correctly.

csld
View Replies:
shotrox replied on at Permalink Reply
shotrox
I have implemented an image resize function on image upload in several websites due to the fact that these clients wanted to be able to throw any size up on the site. The site then automatically reduces the image size appropriately.
Please PM me with more details and I will quote a price.

Thanks
Alexander Schottky
csld replied on at Permalink Reply
csld
Hi Alexander,

Sounds perfect lets give it a whirl.
mhawke replied on at Permalink Reply
mhawke
I see you've tagged this question with 5.7. Doesn't 5.7 already have the capacity to resize images on the client before uploading them?
csld replied on at Permalink Reply
csld
Sorry, the tag came up automatically. I believe it has a thumbnail feature but its not exactly what I'm looking for.
mhawke replied on at Permalink Reply
mhawke
Sorry, I'm confused. Are you on 5.7?

If so, head to System and Settings -> Image Uploading

Set the maximum sizes there and see what happens. It works client-side.

https://documentation.concrete5.org/developers/background/version-hi...

"New uploading settings Dashboard page allows administrators to specify a maximum width, height and JPEG level for images uploaded to the file manager. Images will be constrained using client side JavaScript (if available) and server side as a fallback (thanks Mesuva)"
csld replied on at Permalink Reply
csld
I'm using all versions of C5 on all different websites. I have looked at the max size options but they are also touch and go. If the client has got a full-screen image slider that needs to be over 1000px wide but then also a small sidebar image, the issue would be that C5 would then allow them to add an image of 1000px width to the sidebar, the css would scale and crop it but then Google Speed test wouldn't be happy as a 1000px wide image is in an area of 300px width.
mhawke replied on at Permalink Reply
mhawke
Yes, the settings in 5.7 do limit the upload to whatever you set the maximums to which can be a problem for images that must be larger. For those specific cases, my clients know they have to clear those limits before uploading very large images. In my experience, the limits work for the vast majority of normal uploading operations. Your second issue is (mostly) solved in 5.7 because the new image rendering architecture picks the proper sized image from the gazillion thumbnails it creates upon upload. None of this applies to versions prior to 5.7.5.4 so those sites are a separate issue.