Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

consider image rotation (exif) #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

DoKraus
Copy link

@DoKraus DoKraus commented Apr 27, 2017

Regarding #23:

Seems to work now, but it is rather slow on mobile devices (tested with iPhone 4S, iOS 10.3.1).
I assume that's because of the canvas' toDataURL-method.
I reduced that problem and used the same filetype as the selected image. So image/jpeg would not converted to image/png - which accelerates the processing.

For images without rotation, the passed base64 string is used, so that no canvas-working is needed.

@ribizli
Copy link
Owner

ribizli commented May 12, 2017

Sorry for the late reaction. I like the solution, but still thinking about if I want to provide this as included default. I'm thinking to let users decide, and let them add this through a plugin (provider).
Unfortunately I'm busy now, so I cannot really work on this project soon.

@pareshvarde
Copy link

pareshvarde commented Jul 25, 2018

It's been a more than a year. Can someone please merge this to master?

@ribizli
Copy link
Owner

ribizli commented Jul 26, 2018

Hi, sorry, I don't really want to tightly couple the exif code with this library. I'd rather allow it as a plug-in. But still need to work on it. Since nobody has pushed this too hard until now, I thought it is not relevant anymore. Still I cannot promise anything for now, I'm thinking about some multi provider injection plug-in system working on data urls in a chained way.

@pareshvarde
Copy link

pareshvarde commented Jul 27, 2018 via email

@jpike88
Copy link

jpike88 commented Apr 11, 2019

I don't really want to tightly couple the exif code with this library

EXIF metadata exists on loads of photos, your design decision makes this library only handle 50% of the equation. I assumed it handled orientation by default, why wouldn't it?

@ribizli
Copy link
Owner

ribizli commented Apr 11, 2019

@jpike88 this repo is not maintained anymore, file an issue rather here: https:/ribizli/ngx-image2dataurl

In that project I've designed a plugin system(ImageFileProcessor) so one can plug in EXIF support.

@jpike88
Copy link

jpike88 commented Apr 11, 2019

I release a package called ngx-image2dataurl-orientation with the fix, it's based off that new repo. All good

@ribizli
Copy link
Owner

ribizli commented Apr 11, 2019

It's you call, however I'd prefer just releasing a plugin for the ngx-image2dataurl package.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants