You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the title, if I want to get width/height of an image in portrait mode from a mobile phone, the width and height are incorrect (width is wider that height).
I use this code to call the method:
using(varstream=imageBlob.OpenRead()){string[]info=new[]{"source.width","source.height","final.width","final.height","result.ext","result.mime"};varlength=stream.Length;// set length before calling LoadImageInfovarresult=CurrentImageBuilder.LoadImageInfo(stream,info);returnnewTuple<int,int,long>((int)result["source.width"],(int)result["source.height"],length);}
Is there some setting I am missing in the call to LoadImageInfo (i.e in info)?
I've found code here on github that seems to indicate that you do actually autorotate by default for some calls (in ImageBuilder.PostDecodeStream), but I am unsure if this code is > 4.2.8 or not called when calling LoadImageInfo.
We are currently on ImageBuilder 4.2.8
Thanks
The text was updated successfully, but these errors were encountered:
I haven't. I always presumed that those were for when you did any crop/resize actions and they would hold the resulting size of the cropped/resized image. Is this documented somewhere, I was unable to find it?
Yes, I know how phone images store data, that's why I never considered that final.* would hold the rotated/cropped dimensions even if I hadn't done any cropping/rotating. To me, that just doesn't make sense, but now I know
As per the title, if I want to get width/height of an image in portrait mode from a mobile phone, the width and height are incorrect (width is wider that height).
I use this code to call the method:
Is there some setting I am missing in the call to LoadImageInfo (i.e in info)?
I've found code here on github that seems to indicate that you do actually autorotate by default for some calls (in ImageBuilder.PostDecodeStream), but I am unsure if this code is > 4.2.8 or not called when calling LoadImageInfo.
We are currently on ImageBuilder 4.2.8
Thanks
The text was updated successfully, but these errors were encountered: