Skip to content

Commit c44d956

Browse files
committed
Editorial tweaks to image-orientation. Note that EXIF data is ignored in CSS. Add issue about whether that's true for printers; if so we'll need an 'auto' value and they'll need a different default stylesheet.
1 parent 0a22616 commit c44d956

2 files changed

Lines changed: 64 additions & 31 deletions

File tree

css3-images/Overview.html

Lines changed: 42 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,21 +2154,27 @@ <h3 id=image-orientation><span class=secno>6.2. </span> Orienting an Image
21542154
on the Page: the &lsquo;<a href="#image-orientation0"><code
21552155
class=property>image-orientation</code></a>&rsquo; property</h3>
21562156

2157-
<p>Images from camera phones, digital cameras or scanners may be encoded
2158-
sideways. For example, the first row of image data may represent the
2159-
leftmost or rightmost column of image pixels. Furthermore, often such
2157+
<p>Sometimes images from camera phones, digital cameras or scanners are
2158+
encoded sideways. For example, the first row of image data can represent
2159+
the leftmost or rightmost column of image pixels. Furthermore, often such
21602160
devices have limited resources, and do not have the capability to rotate
21612161
the image into an upright orientation. However, this type of device may
21622162
have internal knowledge or can accept input from its user as to the
2163-
rotational correction to perform.
2164-
2165-
<p>The image-orientation property provides a way to specify an
2166-
"out-of-band" rotation to be applied to image source data. This facility
2167-
is not intended to specify layout transformations such as arbitrary
2168-
rotation or flipping the image in the horizontal or vertical direction. It
2169-
is not needed to correctly orient an image when printing in landscape
2170-
versus portrait orientation, as that rotation is done as part of layout.
2171-
It should only be used to correct incorrectly-oriented images.
2163+
rotational correction to perform. The &lsquo;<a
2164+
href="#image-orientation0"><code
2165+
class=property>image-orientation</code></a>&rsquo; property provides a way
2166+
to specify an "out-of-band" rotation to be applied to image source data to
2167+
correctly orient an image.
2168+
2169+
<p class=note>Note this facility is not intended to specify layout
2170+
transformations such as arbitrary rotation or flipping the image in the
2171+
horizontal or vertical direction. (See <a href="#CSS3-2D-TRANSFORMS"
2172+
rel=biblioentry>[CSS3-2D-TRANSFORMS]<!--{{CSS3-2D-TRANSFORMS}}--></a> for
2173+
a feature designed to do that.) It is also not needed to correctly orient
2174+
an image when printing in landscape versus portrait orientation, as that
2175+
rotation is done as part of layout. (See <a href="#CSS3PAGE"
2176+
rel=biblioentry>[CSS3PAGE]<!--{{CSS3PAGE}}--></a>.) It should only be used
2177+
to correct incorrectly-oriented images.
21722178

21732179
<table class=propdef>
21742180
<thead>
@@ -2209,15 +2215,13 @@ <h3 id=image-orientation><span class=secno>6.2. </span> Orienting an Image
22092215
<td>specified value, rounded and normalized (see text)
22102216
</table>
22112217

2212-
<p>&lsquo;<a href="#image-orientation0"><code
2213-
class=property>image-orientation</code></a>&rsquo; specifies an orthogonal
2214-
rotation to be applied to an image before it is laid out. CSS layout
2215-
processing applies to the image <em>after</em> rotation. This implies, for
2216-
example:
2218+
<p>This property specifies an orthogonal rotation to be applied to an image
2219+
before it is laid out. CSS layout processing applies to the image
2220+
<em>after</em> rotation. This implies, for example:
22172221

22182222
<ul>
22192223
<li>The intrinsic height and width are derived from the rotated rather
2220-
than the original image dimensions;
2224+
than the original image dimensions.
22212225

22222226
<li>The height (width) property applies to the vertical (horizontal)
22232227
dimension of the image, <em>after</em> rotation.
@@ -2510,6 +2514,16 @@ <h3 class=no-num id=other-references>Other references</h3>
25102514
</dd>
25112515
<!---->
25122516

2517+
<dt id=CSS3-2D-TRANSFORMS>[CSS3-2D-TRANSFORMS]
2518+
2519+
<dd>Dean Jackson; David Hyatt; Chris Marrin. <a
2520+
href="http://www.w3.org/TR/2009/WD-css3-2d-transforms-20091201"><cite>CSS
2521+
2D Transforms Module Level 3.</cite></a> 1 December 2009. W3C Working
2522+
Draft. (Work in progress.) URL: <a
2523+
href="http://www.w3.org/TR/2009/WD-css3-2d-transforms-20091201">http://www.w3.org/TR/2009/WD-css3-2d-transforms-20091201</a>
2524+
</dd>
2525+
<!---->
2526+
25132527
<dt id=CSS3COLOR>[CSS3COLOR]
25142528

25152529
<dd>Tantek &#199;elik; Chris Lilley; L. David Baron. <a
@@ -2519,6 +2533,16 @@ <h3 class=no-num id=other-references>Other references</h3>
25192533
</dd>
25202534
<!---->
25212535

2536+
<dt id=CSS3PAGE>[CSS3PAGE]
2537+
2538+
<dd>H&#229;kon Wium Lie; Melinda Grant. <a
2539+
href="http://www.w3.org/TR/2006/WD-css3-page-20061010"><cite>CSS3 Module:
2540+
Paged Media.</cite></a> 10 October 2006. W3C Working Draft. (Work in
2541+
progress.) URL: <a
2542+
href="http://www.w3.org/TR/2006/WD-css3-page-20061010">http://www.w3.org/TR/2006/WD-css3-page-20061010</a>
2543+
</dd>
2544+
<!---->
2545+
25222546
<dt id=SMIL10>[SMIL10]
25232547

25242548
<dd>Philipp Hoschka. <a

css3-images/Overview.src.html

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,20 +1437,25 @@ <h3 id="image-resolution">
14371437
<h3 id="image-orientation">
14381438
Orienting an Image on the Page: the 'image-orientation' property</h3>
14391439

1440-
<p>Images from camera phones, digital cameras or scanners may be encoded sideways.
1441-
For example, the first row of image data may represent the leftmost or
1440+
<p>Sometimes images from camera phones, digital cameras or scanners are
1441+
encoded sideways.
1442+
For example, the first row of image data can represent the leftmost or
14421443
rightmost column of image pixels. Furthermore, often such devices have limited
14431444
resources, and do not have the capability to rotate the image into an upright
14441445
orientation. However, this type of device may have internal knowledge or can
1445-
accept input from its user as to the rotational correction to perform.</p>
1446-
1447-
<p>The image-orientation property provides a way to specify an "out-of-band"
1448-
rotation to be applied to image source data. This facility is not intended to
1449-
specify layout transformations such as arbitrary rotation or flipping the image
1450-
in the horizontal or vertical direction. It is not needed to correctly orient
1451-
an image when printing in landscape versus portrait orientation, as that
1452-
rotation is done as part of layout. It should only be used to correct
1453-
incorrectly-oriented images.</p>
1446+
accept input from its user as to the rotational correction to perform.
1447+
The 'image-orientation' property provides a way to apply an
1448+
&rdquo;out-of-band&ldquo; rotation to image source data to correctly orient
1449+
an image.
1450+
1451+
<p class="note">Note this facility is not intended to specify layout
1452+
transformations such as arbitrary rotation or flipping the image in the
1453+
horizontal or vertical direction. (See [[CSS3-2D-TRANSFORMS]] for a feature
1454+
designed to do that.)
1455+
It is also not needed to correctly orient an image when printing in landscape
1456+
versus portrait orientation, as that rotation is done as part of layout.
1457+
(See [[CSS3PAGE]].)
1458+
It should only be used to correct incorrectly-oriented images.</p>
14541459

14551460
<table class="propdef">
14561461
<thead>
@@ -1478,13 +1483,13 @@ <h3 id="image-orientation">
14781483
<td>specified value, rounded and normalized (see text)
14791484
</table>
14801485

1481-
<p>'image-orientation' specifies an orthogonal rotation to be applied to an image
1486+
<p>This property specifies an orthogonal rotation to be applied to an image
14821487
before it is laid out. CSS layout processing applies to the image <em>after</em>
14831488
rotation. This implies, for example:</p>
14841489

14851490
<ul>
14861491
<li>The intrinsic height and width are derived from the rotated rather than the
1487-
original image dimensions;</li>
1492+
original image dimensions.</li>
14881493

14891494
<li>The height (width) property applies to the vertical (horizontal) dimension
14901495
of the image, <em>after</em> rotation.</li>
@@ -1497,6 +1502,10 @@ <h3 id="image-orientation">
14971502
(that is, 45deg is rounded to 90deg, while -45deg is rounded to -90deg), then
14981503
moduloing the value by 1 turn (360deg, 400grad, etc.).</p>
14991504

1505+
<p class="note">Note that in CSS, orientation data encoded in the image
1506+
(e.g. EXIF data) is ignored. <span class="issue">Is this an issue? What
1507+
do printers do?</span>
1508+
15001509
<div class="example">
15011510
<p>The following example rotates the image 90 degrees clockwise:</p>
15021511

0 commit comments

Comments
 (0)