Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloudinary:sync_static adds extra metadata on upload (causing an increase in file-size) #41

Closed
rickclare opened this issue Nov 27, 2012 · 1 comment

Comments

@rickclare
Copy link

The cloudinary:sync_static rake task seems to add unnecessary metadata when uploading to Cloudinary (thus increases the download file-size).

In some cases, this can add 30-40% extra to the download file-size, thus negating the advantage of using a CDN.

Here are some example images, uploaded using a freshly created Rails app.

Before upload, these images were firstly locally processed through the ImageOptim app, to losslessly optimise files size.

The following URLs show the same image uploaded firstly by rake cloudinary:sync_static and then manually (using the Cloudinary web interface)

rails.png (6% file size difference)
sync: https://d3jpl91pxevbkh.cloudfront.net/greenplantswap-test/image/asset/v1354008225/rails-974a1303a93adf0580c266621193f232.png
manual: https://d3jpl91pxevbkh.cloudfront.net/greenplantswap-test/image/upload/v1354008247/nisdbyrtuwtca5cv45n1.png

user-icon (33% file size difference)
sync: https://d3jpl91pxevbkh.cloudfront.net/greenplantswap-test/image/asset/v1354008226/user-icon-500x500-797dcc0bbab18b058746977a3d196510.png
manual: https://d3jpl91pxevbkh.cloudfront.net/greenplantswap-test/image/upload/v1354008478/gfwiksjjfnrvmma8i3oi.png

home-in-action (41%file size difference)
sync: https://d3jpl91pxevbkh.cloudfront.net/greenplantswap-test/image/asset/v1354008911/home-in-action2-6a6a74a622ad4205a0bc696f5469d2a9.png
manual: https://d3jpl91pxevbkh.cloudfront.net/greenplantswap-test/image/upload/v1354008934/qn0ua9fhw7enehgxrhzq.png

If this metadata is necessary (e.g. for syncing purposes), please can it be automatically stripped whenever the image is requested via the download URL? (https://d3jpl91pxevbkh.cloudfront.net/greenplantswap-test/image/asset/***)

Cheers

Rick

(Cloudinary account: greenplantswap)

@nadavs
Copy link
Contributor

nadavs commented Nov 28, 2012

Thank you for reporting this issue.
We have fixed our service not to modify uploaded images of static assets that are being synced to Cloudinary.

@nadavs nadavs closed this as completed Nov 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants