Resize customer uploaded profile/review pics, enable routing via image CDN
We need some way to run the customer upload files like the profile pics and the review images via the image resizer built into cart.com. Some of our customers are uploading enormous image files. Frequently uploaded profile images over are over 500Kb, but only render at 70px wide where they are displayed, so that file should only be a few Kb at most if I could resize it properly. We are having a similar issue with images uploaded for product reviews. Some customers are uploading 4K image files, but review images only display at a max of 1024px, so there is no need to be sending a 10MB file to the customer computer only to render it 1024 px wide and especially on mobiles they take forever to load. If we could use the built in image resizer, those should go from 10MB to less than 200Kb when displayed, 50x smaller. That would also reduce our bandwidth usage.
I also have not found any way we can route those images (we can route our product images) through our image CDN Cloudinary, which optimizes images for each device. I have an image source setup on Cloudinary where if we access any image/script from our cart.com store url, then Cloudinary optimizes and stores a copy on their CDN servers. So we would just need to be able to prepend the Cloudinary image source url to any *locally stored* customer uploaded image files.
I also wish customer uploaded images could be resized on upload to a max size, but that is not available (already requested here: https://americommerce.zendesk.com/hc/en-us/community/posts/360048842234-Product-Review-Pic-improvements). The max image width we currently display on our site is 1024px wide, so it would be nice if we could set a parameter that all images uploaded by customers be resized to a max size of 1024px wide. So when a customer uploads a 4K (3840px or 4096px wide, upto 25MB) image, it would automatically get resized to 1024px. We are currently having to pay for extra file storage and extra bandwidth, simply because of the enormous size of cell phone images uploaded by customers.
-
100%. Customer review photos can be huge; we manually resize and replace on server. Automatic use of resizer/cdn (cloudiness, etc) would be great
0 -
Hey Brian,
How are you resizing those? FTP?
Is there some way to know when a new file is uploaded by a customer?
As far as I can tell there is no way to use the API to do that currently.
Joshua
0 -
Old fashioned way, get a notification of a new product review -> see if it has images -> download and run through Kraken.io -> replace on server.
I know review images support was just added to the api so we’re going to experiment using cloudinary automatically
0 -
I just realized another one that is causing file storage overage fees for us...
We allow customers to upload files in our contact form so they can send us pics of their cars, pics of parts they are looking for, sales tax exempt forms, etc. I just opened the "upload" folder on our cart.com server via FTP (it crashes the browser if I try to use Content > Files in the cart.com admin interface) and there are 6.5GB of customer uploaded files.
0 -
I just stumbled upon another possible solution to resizing / optimizing images. TinyPNG.com offers optimizing and resizing of 500 images per month via their API at no charge: https://tinypng.com/developers
If you go over the 500 images, it is $0.009 (just under one cent USD) for each additional image in a given month.
It would be awesome if cart.com had the option to integrate with the TinyPNG API for images uploaded by staff or customers to our webstore.
Should this be added as a separate feature request?
0
Please sign in to leave a comment.
Comments
5 comments