<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25508</bug_id>
          
          <creation_ts>2014-04-29 22:53:04 +0000</creation_ts>
          <short_desc>&lt;img&gt;: Have an autorotate=&quot;&quot; attribute that honours orientation metadata in the image (e.g. EXIF)</short_desc>
          <delta_ts>2019-03-29 22:27:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          <see_also>http://code.google.com/p/chromium/issues/detail?id=413272</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>adrianba</cc>
    
    <cc>annevk</cc>
    
    <cc>d</cc>
    
    <cc>davve</cc>
    
    <cc>dbaron</cc>
    
    <cc>eoconnor</cc>
    
    <cc>eseidel</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>marakow</cc>
    
    <cc>mathias</cc>
    
    <cc>mike</cc>
    
    <cc>mjs</cc>
    
    <cc>noel.gordon</cc>
    
    <cc>oriadam</cc>
    
    <cc>roc</cc>
    
    <cc>seth</cc>
    
    <cc>Smylers</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      <flag name="needinfo"
          id="102"
          type_id="3"
          status="?"
          setter="zcorpan"
          requestee="noel.gordon"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104749</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-29 22:53:04 +0000</bug_when>
    <thetext>Instead of the CSS &apos;image-orientation&apos; property, it would make more sense to have an HTML &lt;img&gt; attribute that honours EXIF.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104752</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-29 23:03:15 +0000</bug_when>
    <thetext>cc&apos;ing Tab so that he&apos;s aware of this and can drop image-orientation once I&apos;ve added it, assuming that&apos;s workable.

I presume this will be a boolean attribute; if present, honour orientation, else do the same as now.

Any suggestions for a good name? honor-exif-orientation=&quot;&quot; is a bit long.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104754</commentid>
    <comment_count>2</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2014-04-29 23:06:14 +0000</bug_when>
    <thetext>You don&apos;t want EXIF in the name; while that&apos;s the metadata scheme used by most image formats, there&apos;s nothing special about it that would make this attribute work any differently if we used some other metadata scheme.

Call it &quot;autoorient&quot;?

(Dropping image-orientation in favor of an HTML attribute is already planned: http://dev.w3.org/csswg/css-images/#the-image-orientation)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104803</commentid>
    <comment_count>3</comment_count>
    <who name="Smylers">Smylers</who>
    <bug_when>2014-04-30 11:42:18 +0000</bug_when>
    <thetext>(In reply to Tab Atkins Jr. from comment #2)
&gt; Call it &quot;autoorient&quot;?

That double “oo” is awkward.

How about autorotate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104828</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-30 17:56:38 +0000</bug_when>
    <thetext>autorotate=&quot;&quot; is pretty nice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104864</commentid>
    <comment_count>5</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2014-04-30 21:33:21 +0000</bug_when>
    <thetext>Yeah, sounds good to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106417</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-05-20 02:48:02 +0000</bug_when>
    <thetext>(File a new bug about the Index when fixing this)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106745</commentid>
    <comment_count>7</comment_count>
    <who name="Seth Fowler">seth</who>
    <bug_when>2014-05-23 22:55:31 +0000</bug_when>
    <thetext>From my perspective, Tab&apos;s proposal at the bottom of this message is the right approach:

http://lists.w3.org/Archives/Public/www-style/2014Apr/0186.html

We really want some support in CSS for document authors to opt in to displaying images with the correct EXIF orientation. (And most sites would surely choose to do this once the feature is widely implemented.) If backwards compatibility were not a concern, the &apos;from-image&apos; behavior would surely be the default today, given the proliferation of smartphone pictures with embedded EXIF orientation data. Safari Mobile even honors EXIF orientation by default!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106746</commentid>
    <comment_count>8</comment_count>
    <who name="Seth Fowler">seth</who>
    <bug_when>2014-05-23 22:56:40 +0000</bug_when>
    <thetext>(To be clear, I&apos;m just saying that we should retain some form of &apos;image-orientation&apos; in CSS. I support adding the HTML attribute.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108196</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-06-22 13:37:13 +0000</bug_when>
    <thetext>https://twitter.com/brucel/status/479883882725404672

[[
TIL (thx @zcorpan) that &lt;img autorotate&gt; won&apos;t make images spin constantly, but honours orientation data in EXIF 
]]

rotatebymetadata is possibly a better name? (ack @shwetank)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109606</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-07-30 21:28:32 +0000</bug_when>
    <thetext>Since we&apos;re bikeshedding... I think autorotate=&quot;&quot; is better than rotatebymetadata=&quot;&quot;. In particular, I think the more words you have in an an attribute name, the harder they are to read. &quot;Rotate byme tada ta? Or is it rotate by me tadata?&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109613</commentid>
    <comment_count>11</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2014-07-30 22:03:23 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #10)
&gt; Since we&apos;re bikeshedding... I think autorotate=&quot;&quot; is better than
&gt; rotatebymetadata=&quot;&quot;. In particular, I think the more words you have in an an
&gt; attribute name, the harder they are to read. &quot;Rotate byme tada ta? Or is it
&gt; rotate by me tadata?&quot;

autorotate is definitely better, even with the possibility of it being interpreted as &quot;constantly rotate&quot;. ^_^

&quot;rotate by me, tada! Ta!&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110023</commentid>
    <comment_count>12</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-08-07 11:59:22 +0000</bug_when>
    <thetext>It appears that desktop Safari, Chrome/Opera and Firefox honor EXIF when the image is shown in the top-level page, but not in &lt;img&gt;.

https://raw.githubusercontent.com/recurser/exif-orientation-examples/master/Landscape_6.jpg
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3109

Mobile Safari honors EXIF also in &lt;img&gt;. Other mobile browsers don&apos;t.

http://www.browserstack.com/screenshots/5864b36445508e27c01ccb333d17b979c27cdfb7

Are browsers willing to switch to the mobile Safari behavior without opt-in?

Is Apple willing to ignore EXIF for &lt;img&gt; in mobile Safari when there&apos;s no opt-in?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110029</commentid>
    <comment_count>13</comment_count>
    <who name="L. David Baron (Mozilla)">dbaron</who>
    <bug_when>2014-08-07 15:45:37 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #12)
&gt; It appears that desktop Safari, Chrome/Opera and Firefox honor EXIF when the
&gt; image is shown in the top-level page, but not in &lt;img&gt;.
&gt; 
&gt; https://raw.githubusercontent.com/recurser/exif-orientation-examples/master/
&gt; Landscape_6.jpg
&gt; http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3109

Also note here that I believe this is specifically the *top-level* page, i.e., it doesn&apos;t happen with &lt;iframe src=&quot;[...].jpg&quot;&gt;&lt;/iframe&gt;.

&gt; Mobile Safari honors EXIF also in &lt;img&gt;. Other mobile browsers don&apos;t.
&gt; 
&gt; http://www.browserstack.com/screenshots/
&gt; 5864b36445508e27c01ccb333d17b979c27cdfb7
&gt; 
&gt; Are browsers willing to switch to the mobile Safari behavior without opt-in?

I think Mozilla folks would prefer not to; see the discussion in
https://bugzilla.mozilla.org/show_bug.cgi?id=298619</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110035</commentid>
    <comment_count>14</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-08-08 05:32:29 +0000</bug_when>
    <thetext>Summarising the Mozilla and WebKit bug discussion:

* iOS and Android devices use EXIF when taking a picture and email to someone.
* Cameras usually use EXIF.
* Some image editing tools rotate the image by changing the pixels and either remove EXIF, leave it as is, or add a duplicate entry saying &quot;no rotation&quot;. https://bugs.webkit.org/show_bug.cgi?id=19688#c64 says Windows Photo Viewer can produce duplicates.
* WebKit/Blink/Gecko (also Geeqie, Nautilus, Eye of GNOME, Thunar) use the last EXIF value when there are duplicates. (I get confused by https://bugzilla.mozilla.org/show_bug.cgi?id=298619#37 -- is it first or last?)
* Windows 7 Photo Viewer, OpenOffice &quot;Insert Picture&quot; and Microsoft Paint ignore EXIF.
* There has been no research yet as to whether always honoring EXIF is a net win or a net loss. Eric Seidel says in https://bugs.webkit.org/show_bug.cgi?id=19688#c61 he thinks it&apos;s a net win.

https://bugzilla.mozilla.org/show_bug.cgi?id=298619#c27 suggests things to research. roc thinks supporting EXIF is a bad idea but is an option if research supports it. (https://bugzilla.mozilla.org/show_bug.cgi?id=298619#33 https://bugzilla.mozilla.org/show_bug.cgi?id=298619#34 )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110701</commentid>
    <comment_count>15</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-08-28 09:45:05 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #14)
&gt; * Some image editing tools rotate the image by changing the pixels and
&gt; either remove EXIF, leave it as is, or add a duplicate entry saying &quot;no
&gt; rotation&quot;. https://bugs.webkit.org/show_bug.cgi?id=19688#c64 says Windows
&gt; Photo Viewer can produce duplicates.

It&apos;s not clear to what extent this it true. It might just be a misunderstanding of what the tag applies to (the primary image or the thumbnail).

https://bugs.webkit.org/show_bug.cgi?id=19688#c124
https://bugzilla.mozilla.org/show_bug.cgi?id=298619#c116</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110702</commentid>
    <comment_count>16</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-08-28 09:55:56 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #14)
&gt; * There has been no research yet as to whether always honoring EXIF is a net
&gt; win or a net loss. Eric Seidel says in
&gt; https://bugs.webkit.org/show_bug.cgi?id=19688#c61 he thinks it&apos;s a net win.

I&apos;ve tried to research this a bit.

I&apos;ve collected the following:

A) total number of sites.
B) total number of &lt;img&gt;s.
C) total number of images with IFD0:Orientation tag that is not Horizontal.
D) total number of images with IFD0:Orientation tag that is not Horizontal where the &lt;img&gt; had width and height attributes.
E) total number of images with duplicate IFD0:Orientation tags where not all are Horizontal.

(I have not collected &quot;total number of images that are taller than wide (ignoring EXIF) and have orientation EXIF&quot;.)

(I also didn&apos;t collect the number of images that failed to download or decode etc.)

The data set is http://webdevdata.org/ data set 2013-09-01 102,000 pages.

Method:

$ find . -type f -print0 | xargs -0 -P 4 -n 40 grep -Eio &quot;&lt;img\s[^&gt;]+&gt;&quot; &gt;&gt; ../img.txt
$ cd ..
$ python fetch-img.py # https://gist.github.com/zcorpan/1848552ed84bc3db4935

Results:

A) 2592
B) 43908
C) 0
D) 0
E) 0

No rotated images at all. Not very surprising though, given that the data set is font pages of high-profile sites.

Let&apos;s look at a different data set: images on lists.w3.org.

Method:

https://www.google.com/search?q=site:lists.w3.org&amp;tbm=isch
load all results
copy resulting DOM from devtools
filter out imgurl=([^&amp;]+)
run similar script as above

Results:

A) 1
B) 779
C) 3
D) 0
E) 0

The images were:

http://lists.w3.org/Archives/Public/www-archive/2012Feb/att-0011/dsc03579.jpg
http://lists.w3.org/Archives/Public/www-archive/2013Oct/att-0018/PepysFootnotes.jpeg
http://lists.w3.org/Archives/Public/www-archive/2013Feb/att-0010/dsc07902-Whiteboard.jpg

relevant HTML pages containing those in &lt;img&gt;:

http://lists.w3.org/Archives/Public/www-archive/2012Feb/0011.html
http://lists.w3.org/Archives/Public/www-archive/2013Oct/0018.html
http://lists.w3.org/Archives/Public/www-archive/2013Feb/0010.html

These three would get the correct orientation if Exif was honored in &lt;img&gt; without opt-in, and no other images in the data set would regress.

I&apos;m happy to look at other data sets if the above is not convincing enough. So far, the data supports Eric Seidel&apos;s belief that honoring Exif without opt-in is a net win.

What do people think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110703</commentid>
    <comment_count>17</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-08-28 10:15:21 +0000</bug_when>
    <thetext>(In reply to L. David Baron (Mozilla) from comment #13)
&gt; Also note here that I believe this is specifically the *top-level* page,
&gt; i.e., it doesn&apos;t happen with &lt;iframe src=&quot;[...].jpg&quot;&gt;&lt;/iframe&gt;.

That is true for Firefox but not for Safari, Chrome and Opera. (IE11 appears to ignore Exif both in iframe and top-level.)

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3137</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110737</commentid>
    <comment_count>18</comment_count>
    <who name="Matt Rakow">marakow</who>
    <bug_when>2014-08-28 22:19:43 +0000</bug_when>
    <thetext>We&apos;re (IE) interested in honoring orientation for top-level and iframes though.  Just hasn&apos;t happened yet.

For other topics on the thread...

I&apos;d prefer to only have this in HTML or CSS, but not both.  HTML sounds fine to me.

My instinct is that rotating based on metadata by default would cause more layout breakage on long-tail and older sites.  The data below is encouraging, though I&apos;m curious if 0 is the right number given the number of users who upload EXIF-oriented images to various sites.  It&apos;s likely that many top sites do fixup server-side but I&apos;d still expect some images to make it through.

For naming, I like autorotate, assuming that this is Boolean as Ian mentioned.  If it needs more options then I like the image-orientation syntax.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110764</commentid>
    <comment_count>19</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-08-29 12:05:36 +0000</bug_when>
    <thetext>Thanks Matt.

Yep, I think 0 is right. (First the script collected any image that had the IFD0:Orientation tag, and there were a number that did but had the value Horizontal (normal) which is the default.)

I guess it is possible to add a UseCounter in Blink or telemetry for Firefox to get more useful data, but it would take some more weeks to get it (plus impl+review time for adding the counter).

Doesn&apos;t CSS also need a way to opt-in for things like background images if we don&apos;t rotate by default?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110772</commentid>
    <comment_count>20</comment_count>
    <who name="Matt Rakow">marakow</who>
    <bug_when>2014-08-29 16:56:28 +0000</bug_when>
    <thetext>The rotation of background-images in CSS is covered by the image() function in Images L4 I believe:

&quot;If the image has an orientation specified in its metadata, such as EXIF, the UA must rotate or flip the image to correctly orient it as the metadata specifies.&quot;

http://dev.w3.org/csswg/css-images/#image-notation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112581</commentid>
    <comment_count>21</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-10-02 13:27:48 +0000</bug_when>
    <thetext>Is anyone interested in implementing images rotated without opt-in and seeing what breaks? I think it could very well be compatible enough (iOS Safari already does it; the research so far only found pages that would be fixed by doing it) and it seems better on the long term, IMHO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112593</commentid>
    <comment_count>22</comment_count>
    <who name="L. David Baron (Mozilla)">dbaron</who>
    <bug_when>2014-10-02 15:50:29 +0000</bug_when>
    <thetext>I think it would be worth trying.  Does iOS Safari do it for all images (img, object, background-image, list-style-image, content, toplevel document, iframe, svg:image, etc.?) or just some of them?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112638</commentid>
    <comment_count>23</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-10-03 10:52:32 +0000</bug_when>
    <thetext>In iOS Simulator of Xcode6-Beta5, I see:

img, iframe, top-level document:
rotated

input, object, background-image, content, list-style-image, svg:image, video poster, embed:
not rotated

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3226</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118662</commentid>
    <comment_count>24</comment_count>
    <who name="Noel Gordon">noel.gordon</who>
    <bug_when>2015-03-18 02:21:10 +0000</bug_when>
    <thetext>Yes, img, iframe, top-level (Image) document only. &lt;iframe&gt; documents satisfy the isImageDocument() test when the &lt;iframe&gt; source is an image URL [1] 

[1] http://trac.webkit.org/browser/trunk/Source/WebCore/rendering/RenderObject.cpp?rev=181654#L1771


What happens on iS Safari when the &lt;img&gt; is in a layer, via CSS translateZ(0) for example.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119873</commentid>
    <comment_count>25</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-04-24 10:14:00 +0000</bug_when>
    <thetext>Also see https://lists.w3.org/Archives/Public/public-whatwg-archive/2015Mar/thread.html#msg14</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124577</commentid>
    <comment_count>26</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-01-13 10:50:26 +0000</bug_when>
    <thetext>It seems like there is not enough interest in trying to rotate all images by default. It&apos;s also not clear to me that it&apos;s a good idea to drop the CSS property, since one might want to rotate e.g. &apos;content: url(image)&apos; images etc.

I suggest we do this:

* Keep the CSS property.
* Add autorotate to &lt;img&gt;
* Add img[autorotate] { image-orientation: from-image; } to Rendering.
* Clarify that image-orientation affects naturalWidth, drawImage(), etc.
* Require that https://html.spec.whatwg.org/multipage/browsers.html#read-media has an autorotate attribute set on the &lt;img&gt; (for top-level images *and* images in &lt;iframe&gt;s).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124579</commentid>
    <comment_count>27</comment_count>
    <who name="Noel Gordon">noel.gordon</who>
    <bug_when>2016-01-13 15:17:16 +0000</bug_when>
    <thetext>I&apos;ve added stats to chrome to record image orientation.  The stats for win  dev-channel chrome on Dec 25th 2015 (Christmas Day): not a busy day, but an interesting distribution.

Top Left	X Billion   100.00%
Top Right	36	00.00%
Bottom Right	2,474	00.00%
Bottom Left	4	00.00%
Left Top	2	00.00%
Right Top	23,518	00.00%
Right Bottom	3	00.00%
Left Bottom	9,902	00.00%</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124582</commentid>
    <comment_count>28</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2016-01-13 23:25:15 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #26)
&gt; It seems like there is not enough interest in trying to rotate all images by
&gt; default. It&apos;s also not clear to me that it&apos;s a good idea to drop the CSS
&gt; property, since one might want to rotate e.g. &apos;content: url(image)&apos; images
&gt; etc.
&gt; 
&gt; I suggest we do this:
&gt; 
&gt; * Keep the CSS property.
&gt; * Add autorotate to &lt;img&gt;
&gt; * Add img[autorotate] { image-orientation: from-image; } to Rendering.
&gt; * Clarify that image-orientation affects naturalWidth, drawImage(), etc.
&gt; * Require that
&gt; https://html.spec.whatwg.org/multipage/browsers.html#read-media has an
&gt; autorotate attribute set on the &lt;img&gt; (for top-level images *and* images in
&gt; &lt;iframe&gt;s).

This sounds fine to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124641</commentid>
    <comment_count>29</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-01-20 12:28:32 +0000</bug_when>
    <thetext>Thank you for the data Noel! It seems difficult to say if rotating by default would fix or regress more, though. But good to know it would at most regress 0.00% of images. :-)

Is there still interest in changing the default, or should I implement comment 26 in the spec?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128894</commentid>
    <comment_count>30</comment_count>
    <who name="oria">oriadam</who>
    <bug_when>2017-09-13 08:20:12 +0000</bug_when>
    <thetext>I strongly vote for default behavior.
Adding this property will make a confusion and inconsistency where it is not needed.
For example we wouldn&apos;t want to add a property called &quot;buggy-behavior:false&quot; now would we :)
There is no use for displaying images up-side down or mirrored.

Regarding Noel&apos;s statistics - at the moment most websites that encounter this bug added processing of uploaded images to remove the orientation before displaying them image back to the user.
This is another incentive to avoid adding &apos;autorotate&apos; or &apos;image-orientation&apos;.
It would be interesting to see statistics for EXIF of uploaded images vs displayed images.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129683</commentid>
    <comment_count>31</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2019-03-29 20:46:01 +0000</bug_when>
    <thetext>My understanding is that this work is currently being pursued in the CSSWG as `image-orientation: from-image`. https://drafts.csswg.org/css-images-3/#propdef-image-orientation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129712</commentid>
    <comment_count>32</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2019-03-29 22:27:50 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/issues/4495</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>