{"repo":"wp-cli/media-command","free":true,"listed":false,"github":"https://github.com/wp-cli/media-command","clone":"git clone https://github.com/wp-cli/media-command.git","description":"Imports files as attachments, regenerates thumbnails, or lists registered image sizes.","language":"Gherkin","stars":47,"topics":["wp-cli","wp-cli-package","wordpress","cli","media","thumbnail","regeneration","upload","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"wp-cli/media-command ==================== Imports files as attachments, regenerates thumbnails, or lists registered image sizes. Quick links: Using Installing Contributing Support Using This package implements the following commands: wp media Imports files as attachments, regenerates thumbnails, replaces existing attachment files, or lists registered image sizes. wp media EXAMPLES # Re-generate all thumbnails, without confirmation. $ wp media regenerate --yes Found 3 images to regenerate. 1/3 Regenerated thumbnails for \"Sydney Harbor Bridge\" (ID 760). 2/3 Regenerated thumbnails for \"Boardwalk\" (ID 757). 3/3 Regenerated thumbnails for \"Sunburst Over River\" (ID 756). Success: Regenerated 3 of 3 images. # Import a local image and set it to be the featured image for a post. $ wp media import /Downloads/image.png --post id=123 --title=\"A downloaded picture\" --featured image Imported file '/home/person/Downloads/image.png' as attachment ID 1753 and attached to post 123 as featured image. Success: Imported 1 of 1 images. # Import an image from STDIN. $ curl http://example.com/image.jpg wp media import - Imported file 'STDIN' as attachment ID 1754. Success: Imported 1 of 1 items. # List all registered image sizes $ wp media image-size +---------------------------+-------+--------+-------+ name width height crop +---------------------------+-------+--------+-------+ full N/A twentyfourteen-full-width 1038 576 hard large 1024 1024 soft medium large 768 0 soft medium 300 300 soft thumbn","default_branch":null,"files":null,"tree":[],"storefront":"/r/wp-cli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wp-cli/media-command/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}