Skip to content

Commit 66a4966

Browse files
committed
Regenerate readme
1 parent c9ac129 commit 66a4966

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,43 @@ wp media
5454

5555

5656

57+
### wp media fix-orientation
58+
59+
Fix image orientation for one or more attachments.
60+
61+
~~~
62+
wp media fix-orientation [<attachment-id>...] [--dry-run]
63+
~~~
64+
65+
**OPTIONS**
66+
67+
[<attachment-id>...]
68+
One or more IDs of the attachments to regenerate.
69+
70+
[--dry-run]
71+
Check images needing orientation without performing the operation.
72+
73+
**EXAMPLES**
74+
75+
# Fix orientation for all images.
76+
$ wp media fix-orientation
77+
1/3 Fixing orientation for "Landscape_4" (ID 62).
78+
2/3 Fixing orientation for "Landscape_3" (ID 61).
79+
3/3 Fixing orientation for "Landscape_2" (ID 60).
80+
Success: Fixed 3 of 3 images.
81+
82+
# Fix orientation dry run.
83+
$ wp media fix-orientation 63 --dry-run
84+
1/1 "Portrait_6" (ID 63) will be affected.
85+
Success: 1 of 1 image will be affected.
86+
87+
# Fix orientation for specific images.
88+
$ wp media fix-orientation 63
89+
1/1 Fixing orientation for "Portrait_6" (ID 63).
90+
Success: Fixed 1 of 1 images.
91+
92+
93+
5794
### wp media import
5895

5996
Creates attachments from local files or URLs.

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"bundled": true,
3737
"commands": [
3838
"media",
39+
"media fix-orientation",
3940
"media import",
4041
"media regenerate",
4142
"media image-size"

0 commit comments

Comments
 (0)