Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9023079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:40:31+00:00 2026-06-16T05:40:31+00:00

I have one HTML file control using this i am trying to upload file

  • 0

I have one HTML file control using this i am trying to upload file on server.

  • Click on file control
  • It will automatically open dialog for file/camera selection.
  • I select Camera
  • I captured photo and save
  • Now submit form
  • the Capture photo save successfully on server but it is rotated 90
    degree.

This problem is only with iPhone or IOS.

<input id="image" name="image" type="file" accept="image/*" capture style="width: 58px" />

Please let me know, how to stop automatic rotation of image if captured from camera.

Thanks,
Imdadhusen

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:40:32+00:00Added an answer on June 16, 2026 at 5:40 am

    This could have something to do with EXIF/TIFF metatags in the images.

    One of these tags indicates the orientation of the image. Some photos you upload to a server (eg from the iPhone) may have these tags, others (from a different source / workflow) may not. The server may or may not retain these tags, and may or may not read the tags in order to attempt correct orientation of the image. Similarly a web browser may or may not pay attention to these tags. If you upload images containing tags, the results will certainly be unpredictable.

    A good way to find out if this is the issue would be to download a ‘problem’ image and a ‘good’ image from the server, and compare them. Open them in preview and check the second tab of the Inspector. Any meta-info will be displayed there. See if one image has orientation info and the other not. If neither display meta-info then it is fairly likely the server is stripping it all out and not using it, and you can forget about this answer.

    Also you should compare in different browsers. Some browsers read this orientation info and rotate the image accordingly, others do not.

    For example, an iPhone photo of mine which was take in portrait mode has the following metatags:

    • Pixel Height: 2,448
    • Pixel Width: 3,264
    • Orientation: 6 (Rotated 90° CCW)

    The native bitmap orientation is landscape.
    The ‘orientation’ metatag indicates to image reading software to rotate to portrait for display.

    The metatag is used by (some) image software to ‘correctly’ rotate the image to portrait but ignored by other software which will display the image as landscape.

    The situation is confusing and there is no established standard for this (the tags are just a hint), so when preparing images for an online publication the safest thing is to strip out these tags and physically rotate the image to the correct BITMAP orientation before uploading. If you are writing the server side of an app you could do this on the server. But it is vital to deliver images to a web browser in the correct BITMAP orientation with no orientation metatags.

    Why is this? Because even today different browsers take different approaches to metatags.

    The iPhone image I just mentioned displays as follows:
    Google Chrome 24 portrait
    Safari 6 portrait
    Firefox 17 landscape
    Opera 12 landscape

    Not a great state of affairs!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Javascript function defined in the main index.html file. One part of this
I am creating one form in html using table. Which have one Drop down
I have one page website only using HTML, CSS and JavaScript. I want to
I'm adding HTML controls dynamically using java script. For instance, I have one button
My problem is I have one html table in jsp page .And i applied
i have one image in my html and i have 5 different link, i
Hi I have one separate page for footer as footer.html & I want to
In my html page, I have one table, for every row there are two
In my Rails app, I have a model Page which represents one HTML article
I have 2 canvases, one uses HTML attributes width and height to size it,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.