File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
5996Creates attachments from local files or URLs.
Original file line number Diff line number Diff line change 3636 "bundled" : true ,
3737 "commands" : [
3838 " media" ,
39+ " media fix-orientation" ,
3940 " media import" ,
4041 " media regenerate" ,
4142 " media image-size"
You can’t perform that action at this time.
0 commit comments