Skip to content

Commit e0dc04d

Browse files
Regenerate README file (#232)
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
1 parent 93627bb commit e0dc04d

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,16 @@ wp media import <file>... [--post_id=<post_id>] [--post_name=<post_name>] [--fil
188188
Regenerates thumbnails for one or more attachments.
189189

190190
~~~
191-
wp media regenerate [<attachment-id>...] [--image_size=<image_size>] [--skip-delete] [--only-missing] [--delete-unknown] [--yes]
191+
wp media regenerate [<attachment-id>...] [--image_size=<image_size>...] [--skip-delete] [--only-missing] [--delete-unknown] [--yes]
192192
~~~
193193

194194
**OPTIONS**
195195

196196
[<attachment-id>...]
197197
One or more IDs of the attachments to regenerate.
198198

199-
[--image_size=<image_size>]
200-
Name of the image size to regenerate. Only thumbnails of this image size will be regenerated, thumbnails of other image sizes will not.
199+
[--image_size=<image_size>...]
200+
Name of the image size to regenerate. Repeat the flag to specify multiple. Only thumbnails of specified image size(s) will be regenerated, thumbnails of other image sizes will not.
201201

202202
[--skip-delete]
203203
Skip deletion of the original thumbnails. If your thumbnails are linked from sources outside your control, it's likely best to leave them around. Defaults to false.
@@ -247,6 +247,15 @@ wp media regenerate [<attachment-id>...] [--image_size=<image_size>] [--skip-del
247247
3/3 Regenerated "large" thumbnail for "Sunburst Over River" (ID 756).
248248
Success: Regenerated 3 of 3 images.
249249

250+
# Re-generate only the thumbnails of "large" and "medium" image sizes for all images.
251+
$ wp media regenerate --image_size=large --image_size=medium
252+
Do you really want to regenerate the "large", "medium" image sizes for all images? [y/n] y
253+
Found 3 images to regenerate.
254+
1/3 Regenerated "large", "medium" thumbnails for "Sydney Harbor Bridge" (ID 760).
255+
2/3 No "large", "medium" thumbnail regeneration needed for "Boardwalk" (ID 757).
256+
3/3 Regenerated "large", "medium" thumbnails for "Sunburst Over River" (ID 756).
257+
Success: Regenerated 3 of 3 images.
258+
250259

251260

252261
### wp media image-size

0 commit comments

Comments
 (0)