When using iOS devices such as the iPhone (and possibly other devices; not Android devices however), photos taken and uploaded in drupal 8 are rotated to a 90 degree angle.
For example, images taken and uploaded vertical are posted horizontal.
Images taken and uploaded horizontal are posted upside down.
Any help would be appreciated
Many thanks
------------------EDIT---------------
I'm currently using Drupal 8's code, so the code is in its original state.
Is there a way to not change the code and download a module or something which can correct the problem?
Below is an example of how images are automatically rotated from the uploaded/original image and posted image...
Example 1
Related
I have been working on Arkit applications these days and have tested many of these applications using Iphone 8 and Iphone X.
I have downloaded a project from Github - https://github.com/max6363/measure-using-ARKit-iOS11.
Though, in the project read me section, the developer mentioned that it is compatible with IPhone SE, my mobile is not able to detect any horizontal planes and as a result of this, I am not able to create any point in the space.
Could someone please let me know regarding this.
I would like to know,if I need to make any changes to the project.
Thanks in advance!
currently working on a side project, but I'm stuck on one big part.
The goal is that the user can take a screenshot from a different popular app that contains 6 images/icons. I want it so when the user goes into my app they can upload that screenshot and I can detect the 6 images and place them into a collection view.
The issue is detecting the type of 6 images in the screen shot, I thought about using an OCR like Tesseract but I'm not sure if that would work because there's zero text in the screenshot, only the 6 images. Something that might help is that in that app there all only 50 kind of images. Would create some sort of database of images help? But how would I compare them?
I apologise if this doesn't make sense I just don't know how to word it. Any help would be great.
Assuming you want to be able to do this across multiple types of devices, a computer vision library like OpenCV might be the way to go.
If your users always run the app on the same device (always on an iPhone 5, say) then the icons might always land in exactly the same spot, and you could simply slice the screenshot up, extract the component images, and do a byte-wise compare on the sub-images. However, you've got iPhone 4, iPhone 5, iPhone 6, 6+ screen-sizes, iPad, iPad retina, iPad pro (small and large) to deal with, and possibly portrait and landscape orientations. Presumably the 6 images will land at different spots on the screens of all those different devices, and you'll have different image resolutions to deal with as well. With OpenCV you should be able to find the bounding rects for the images by "looking at" the screen-shots rather than building a complex set of rules.
Take a look at the OpenCV example code for matching SIFT features (the python version here, but you can find examples in other languages as well). It demonstrates a simpler version of what you want to do.
I have started making iPhone games and need to know what resolution to make the images (sprites) in the game. As for now I have been making my images on paint and they are 72 ppi by default. However, I am aware that the iPhone 6 Plus has a ppi of 401. When I run my game in the IOS simulator the images do not look like they have a lower resolution than they should. So my question is: is it okay to leave the images at 72 ppi or do I need to remake them in 401? Also, do I need to make different resolution Images for each iPhone screen size or is that done automatically? Any advice would be greatly appreciated, thank you.
We are using Canvas to resize images on Iphone/IPAD before uploading to our server.
On IPhone 4S and 5, when photos are taken in landscape mode with FRONT camera, the resizing works fine. When taken in portrait mode, the images are squashed by about 1/4. But when taken with rear camera, all images, both landscape and portrait, are squashed by about 7/8, leaving just a thin belt to view.
On IPAD and IPOD, it is the same for front and rear camera: landscape images are fine, but portrait images are squashed by 1/4.
We tried several different resizing algorithms, but ended up with the same results.
Any ideas how to solve this problem?
I found a working solution for this. gokercebeci posted a great jQuery plugin on github. It is working as expected for my app!
Found a solution that works for me at HTML5 Canvas drawImage ratio bug iOS . The solution is accredited to stomita and posted and edited (I believe) by tombre and matt burns on 14 Jan 2014.
I'm using Rhodes 3.3.3 to develop for iOS and Android. My app uses the camera and I need to resize pictures. I use the following Rhodes commands to resize the picture:
settings = {:enable_editing => false, :desired_width => 800, :desired_height => 800}
Camera::take_picture(url_for(:action => :camera_callback_new), settings)
Documentation: http://docs.rhomobile.com/rhodes/device-caps#camera
The picture returned is resized. However, if it is taken in portrait mode, it is rotated 90 degrees and if I take it in landscape mode, it is rotated 180 degrees.
Visual explanation of my problem: https://groups.google.com/forum/?fromgroups#!topic/rhomobile/W0b46OllwRw
The Rhodes source code for the camera is linked below. As of yet, I have not been able to figure out where the problem is. The picture is not rotated if I do not specify a resize size. The Rhodes support has ignored my requests so far.
https://github.com/rhomobile/rhodes/blob/master/platform/iphone/Classes/Camera/PickImageDelegate.m
Thanks,
Nick,
Have you tried Launchpad developer community? it is a forum for RhoElements developers
Launchpad developer community
you can register for free.
I fixed the issue by using the UIImage+Resize library. Full pull request is here:
https://github.com/rhomobile/rhodes/pull/81