Skip to content

Add original width and height#90

Closed
doc-l2 wants to merge 4 commits intoblueimp:masterfrom
doc-l2:master
Closed

Add original width and height#90
doc-l2 wants to merge 4 commits intoblueimp:masterfrom
doc-l2:master

Conversation

@doc-l2
Copy link
Copy Markdown

@doc-l2 doc-l2 commented Apr 4, 2019

We need to have the original width and height of the image, and it seems to be impossible to get this information from the library without reloading the original image as an image. This is a big overhead, because you can also extract this information from within the lib.

I added two lines that append the width and height to the file object, is this the best place to put it?

@blueimp blueimp closed this in f27268d Apr 5, 2019
@blueimp
Copy link
Copy Markdown
Owner

blueimp commented Apr 5, 2019

Thanks for your contribution, @L-Hendriks.
Adding the properties to the file object would not be the ideal location.
I've pushed a new version that provides the original image width+height in the callback data.
Since the callback data wasn't well documented, I've also updated the README.

@doc-l2
Copy link
Copy Markdown
Author

doc-l2 commented Apr 6, 2019

Hi Sebastian,

Thanks for that! I agree the location is not be ideal, but I didn't want to change too much on the library. Have a nice weekend!

@blueimp
Copy link
Copy Markdown
Owner

blueimp commented Apr 8, 2019

Thanks @L-Hendriks ☺️

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

Successfully merging this pull request may close these issues.

2 participants