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

BMP images are not converted properly #7

Open
skogsmaskin opened this issue Oct 26, 2015 · 0 comments
Open

BMP images are not converted properly #7

skogsmaskin opened this issue Oct 26, 2015 · 0 comments

Comments

@skogsmaskin
Copy link
Member

Not sure if this is a tiramisu or tootsie issue, but when uploading BMP images, they are not converted to JPEG binary, even though the file gets a .jpeg extension.

Example:

http://grove.o5.no/api/grove/v1/posts/post.image:apdm.*$16995063

{
post: {
uid: "post.image:apdm.an.skriverommet$16995063",
created_by: 3246360,
created_at: "2015-09-20T20:23:55.992+02:00",
updated_at: "2015-09-20T20:23:55.992+02:00",
deleted: false,
tags: [ ],
external_id: null,
paths: [
"apdm.an.skriverommet"
],
restricted: false,
published: true,
conflicted: false,
protected: { },
version: 1,
id: "post.image:apdm.an.skriverommet$16995063",
document: {
uid: "image:apdm.an.skriverommet$20150920182353-796-nh5l",
baseurl: "http://apps.o5.no.s3.amazonaws.com/apdm/an/skriverommet/20150920182353-796-nh5l",
original: "http://apps.o5.no.s3.amazonaws.com/apdm/an/skriverommet/20150920182353-796-nh5l/original.bmp",
fullsize: "http://apps.o5.no.s3.amazonaws.com/apdm/an/skriverommet/20150920182353-796-nh5l/218.jpg",
aspect_ratio: 0.796,
versions: [
{
width: 100,
square: false,
url: "http://apps.o5.no.s3.amazonaws.com/apdm/an/skriverommet/20150920182353-796-nh5l/100.jpg"
},
{
width: 100,
square: true,
url: "http://apps.o5.no.s3.amazonaws.com/apdm/an/skriverommet/20150920182353-796-nh5l/100sq.jpg"
},
{
width: 218,
square: false,
url: "http://apps.o5.no.s3.amazonaws.com/apdm/an/skriverommet/20150920182353-796-nh5l/218.jpg"
}
]
},
may_edit: false
}
}

If one inspects i.e. http://apps.o5.no.s3.amazonaws.com/apdm/an/skriverommet/20150920182353-796-nh5l/100sq.jpg you will see the binary data is still BMP.

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

1 participant