-
Notifications
You must be signed in to change notification settings - Fork 209
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
Ability to identify image type without URL filetype (long term) #234
Comments
GitMate.io thinks the contributor most likely able to help you is @ccpandhare. Possibly related issues are #19 (Filetype extraction), #5 (image cropping module), and #116 (Image overlay module). |
This could be implemented within this new function: image-sequencer/src/util/GetFormat.js Line 5 in 58a4798
Which needs some documentation too! |
@jywarren the link is now broken, I am working on this can you please elaborate on this? |
So, I think the issue was that the file URL didn't end in |
@jywarren I was thinking we start off with this and build it up |
+1!
…On Wed, Jun 27, 2018 at 5:16 PM Varun Gupta ***@***.***> wrote:
@jywarren <https://github.com/jywarren> I was thinking we start off with
this and build it up
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#234 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ4711daQCCcuoJyN5nJX-C4NwlzKks5uA_YigaJpZM4TwD49>
.
|
@jywarren I have been reading up on this and it seems to me even if we are able to do this, it will be async and we would have to refactor our calling code to use callbacks instead of returning the value |
Can you give me a permalink to where we use this getformat? |
Right now only in ImportImage -- https://github.com/publiclab/image-sequencer/search?q=getformat&unscoped_q=getformat But i'd like to see it more widely adopted if it's efficient! Hmm, yeah, if it's async maybe not worth it... can you link to what you've been reading? Maybe we get inspired later with an idea. |
Actually @jywarren what i figured out was we can use any way but we would have to convert the image into its dataURI which will take a callback. |
@jywarren should we close this coz this will call for a major refactor using async? |
sure, or you can leave it open with "wontfix" or just clearly note that
it's a long-term project, not high priority... maybe someday!
…On Wed, Jul 11, 2018 at 10:44 AM Varun Gupta ***@***.***> wrote:
@jywarren <https://github.com/jywarren> should we close this coz this
will call for a major refactor using async?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#234 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJyQC5f_jH2otj6JJ1VnewxfSVf-Lks5uFg9bgaJpZM4TwD49>
.
|
sure |
I tried running Image Sequencer (in bookmarklet mode) on a Google map page on MapKnitter.org --
https://khms1.googleapis.com/kh?v=798&hl=en-US&x=38213&y=49619&z=17
This is a jpg (i think , but maybe png) -- but i get:
Can we identify images using mime-type or something? Or at least fallback to jpg if you don't detect anything?
The text was updated successfully, but these errors were encountered: