From c1ebda663f5e7c64d8bee25e38d3c5819a6d3bba Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sun, 17 Oct 2021 22:08:32 +0900 Subject: CSS 画像の文書を更新 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 2021/10/16 時点の英語版に同期 --- files/ja/web/css/image-orientation/index.md | 142 ++++++++++++---------------- files/ja/web/css/image-orientation/mdn.svg | 1 + 2 files changed, 64 insertions(+), 79 deletions(-) create mode 100644 files/ja/web/css/image-orientation/mdn.svg (limited to 'files/ja/web/css/image-orientation') diff --git a/files/ja/web/css/image-orientation/index.md b/files/ja/web/css/image-orientation/index.md index 7366e9755b..bbb8eb4009 100644 --- a/files/ja/web/css/image-orientation/index.md +++ b/files/ja/web/css/image-orientation/index.md @@ -3,127 +3,111 @@ title: image-orientation slug: Web/CSS/image-orientation tags: - CSS - - CSS Image - - CSS Property - - CSS プロパティ - CSS 画像 + - CSS プロパティ - EXIF - - Experimental + - 実験的 + - 画像補正 + - 画像の向き + - Deprecated + - 向き - Reference - image-orientation - - リファレンス - - 画像の向き - - 画像補正 + - recipe:css-property +browser-compat: css.properties.image-orientation translation_of: Web/CSS/image-orientation --- -

image-orientationCSS のプロパティで、画像の向きのレイアウトに依存しない修正を指定します。向きの調整以外に使用してはいけません。そのような場合は、 {{cssxref("transform")}} プロパティで rotate {{cssxref("<transform-function>")}} の値を使用してください。

+**`image-orientation`** は [CSS](/ja/docs/Web/CSS) のプロパティで、画像の向きのレイアウトに依存しない修正を指定します。 -
-

警告: このプロパティは仕様書で非推奨となっています。この機能は {{HTMLElement("img")}} や {{HTMLElement("picture")}} 要素のプロパティに、おそらく from-image の例外を除いて移行する可能性があります。 flip および <angle> の値は Firefox 63 で廃止されました。

-
+> **Note:** `from-image` と `none` 以外の値は、仕様書では非推奨とされています。 -
/* キーワード値 */
+```css
+/* キーワード値 */
 image-orientation: none;
 image-orientation: from-image; /* 画像の EXIF データを使用 */
 
 /* グローバル値 */
 image-orientation: inherit;
 image-orientation: initial;
+image-orientation: revert;
 image-orientation: unset;
 
 /* 廃止された値 {{obsolete_inline(63)}} */
 image-orientation: 90deg; /* 90度回転 */
 image-orientation: 90deg flip; /* 90度回転して、水平方向に反転 */
-image-orientation: flip; /* 回転せず、水平方向の反転のみ適用 */
- -

{{cssinfo}}

+image-orientation: flip; /* 回転せず、水平方向の反転のみ適用 */ +``` -

構文

+## 構文 -

+### 値 -
-
none
-
既定の初期値です。追加の画像の回転を適用しません。画像はエンコードされた方向、または他の CSS プロパティの値で決められた方向になります。
-
from-image
-
画像に含まれている {{interwiki("wikipedia", "EXIF")}} 情報を使用して、画像の向きを適切にします。
-
{{cssxref("<angle>")}} {{non-standard_inline}}{{obsolete_inline(63)}}
-
画像を回転させる {{cssxref("<angle>")}}。 もっとも近い 90deg (0.25turn) 単位の値に丸められます。
-
flip {{non-standard_inline}}{{obsolete_inline(63)}}
-
{{cssxref("<angle>")}} 値に従って回転した後に、画像を水平方向に反転します (つまり鏡像にします)。 {{cssxref("<angle>")}} を指定しない場合は、 0deg を使用します。
-
+- `none` + - : 既定の初期値です。追加の画像の回転を適用しません。画像はエンコードされた方向、または他の CSS プロパティの値で決められた方向になります。 +- `from-image` + - : 画像に含まれている {{interwiki("wikipedia", "EXIF")}} 情報を使用して、画像の向きを適切にします。 +- {{cssxref("<angle>")}}{{deprecated_inline}} + - : 画像を回転させる {{cssxref("<angle>")}}。 もっとも近い `90deg` (`0.25turn`) 単位の値に丸められます。 +- `flip`{{deprecated_inline}} + - : {{cssxref("<angle>")}} 値に従って回転した後に、画像を水平方向に反転します (つまり鏡像にします)。{{cssxref("<angle>")}} を指定しない場合は、 `0deg` が使用されます。 -

形式文法

+## 解説 -{{csssyntax}} - -

使用上のメモ

+このプロパティは、回転したカメラで撮影された画像の方向を修正するため*だけ*を目的としています。自由に回転させるために使用するべきでは*ありません*。撮影やスキャンで回転してしまった画像の向きを修正する以外の用途の場合は、{{cssxref("transform")}} プロパティに `rotate` キーワードを付けて回転を指定してください。これはユーザーによる画像の向きの変更や、印刷時に縦向きと横向きを変更する必要がある場合も含みます。 -

このプロパティは、回転したカメラで撮影された画像の方向を修正するためだけを目的としています。自由に回転させるために使用するべきではありません。撮影やスキャンで回転してしまった画像の向きを修正する以外の用途の場合は、 {{cssxref("transform")}} プロパティに rotate キーワードを付けて回転を指定してください。これはユーザーによる画像の向きの変更や、印刷時に縦向きと横向きを変更する必要がある場合も含みます。

+{{cssxref("<transform-function>")}} などの他の CSS プロパティとの組み合わせで使用された場合、 `image-orientation` による回転は、常に他の変形が行われる前に適用されます。 -

{{cssxref("<transform-function>")}} などの他の CSS プロパティとの組み合わせで使用された場合、 image-orientation による回転は、常に他の変形が行われる前に適用されます。

+## Formal definition -

+{{cssinfo}} -

CSS

+## Formal syntax -
#image {
-  image-orientation: from-image; /* ライブ例の中で変更することができます */
-}
-
+{{csssyntax}} - +``` -

結果

+#### 結果 -

{{EmbedLiveSample("Example", "100%", 240)}}

+{{EmbedLiveSample("Orienting_image_from_image_data", "100%", 240)}} -

仕様書

+## Specifications - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('CSS3 Images', '#the-image-orientation', 'image-orientation')}}{{Spec2('CSS3 Images')}}初回定義
+{{Specifications}} -

ブラウザーの互換性

+## Browser compatibility -

{{Compat("css.properties.image-orientation")}}

+{{Compat}} -

関連情報

+## See also - +- その他の画像関連 CSS プロパティ: {{cssxref("object-fit")}}, {{cssxref("object-position")}}, {{cssxref("image-orientation")}}, {{cssxref("image-rendering")}}, {{cssxref("image-resolution")}} +- {{cssxref("transform")}} および {{cssxref("rotate")}} -
{{CSSRef}}
+{{CSSRef}} diff --git a/files/ja/web/css/image-orientation/mdn.svg b/files/ja/web/css/image-orientation/mdn.svg new file mode 100644 index 0000000000..bbdbacc6fc --- /dev/null +++ b/files/ja/web/css/image-orientation/mdn.svg @@ -0,0 +1 @@ + \ No newline at end of file -- cgit v1.2.3-54-g00ecf