Created
June 22, 2018 19:06
-
-
Save dotsam/f31dfed2ee1b64b149883520ee901b43 to your computer and use it in GitHub Desktop.
wp-cli media regenerate site-icon issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sam@Ker.thenumber.ca ~/.../web/site-icon-bug | |
$ wp post meta list 14 | |
+---------+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| post_id | meta_key | meta_value | | |
+---------+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| 14 | _wp_attached_file | 2018/06/logo-web.png | | |
| 14 | _wp_attachment_metadata | {"width":512,"height":512,"file":"2018\/06\/logo-web.png","sizes":{"thumbnail":{"file":"logo-web-150x150.png","width":150,"height":150,"mime-type":"image\/png"},"medium":{"file":"logo-web-300x300.png","width":300,"height":300,"mime-t | | |
| | | ype":"image\/png"},"twentyseventeen-thumbnail-avatar":{"file":"logo-web-100x100.png","width":100,"height":100,"mime-type":"image\/png"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyr | | |
| | | ight":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}} | | |
+---------+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
sam@Ker.thenumber.ca ~/.../web/site-icon-bug | |
$ wp post meta list 15 | |
+---------+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| post_id | meta_key | meta_value | | |
+---------+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| 15 | _wp_attached_file | 2018/06/cropped-logo-web.png | | |
| 15 | _wp_attachment_context | site-icon | | |
| 15 | _wp_attachment_metadata | {"width":512,"height":512,"file":"2018\/06\/cropped-logo-web.png","sizes":{"thumbnail":{"file":"cropped-logo-web-150x150.png","width":150,"height":150,"mime-type":"image\/png"},"medium":{"file":"cropped-logo-web-300x300.png","width": | | |
| | | 300,"height":300,"mime-type":"image\/png"},"twentyseventeen-thumbnail-avatar":{"file":"cropped-logo-web-100x100.png","width":100,"height":100,"mime-type":"image\/png"},"site_icon-270":{"file":"cropped-logo-web-270x270.png","width":27 | | |
| | | 0,"height":270,"mime-type":"image\/png"},"site_icon-192":{"file":"cropped-logo-web-192x192.png","width":192,"height":192,"mime-type":"image\/png"},"site_icon-180":{"file":"cropped-logo-web-180x180.png","width":180,"height":180,"mime- | | |
| | | type":"image\/png"},"site_icon-32":{"file":"cropped-logo-web-32x32.png","width":32,"height":32,"mime-type":"image\/png"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal | | |
| | | _length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}} | | |
+---------+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
sam@Ker.thenumber.ca ~/.../2018/06 | |
$ ll *logo-web* | |
-rw-r--r-- 1 sam 2.1K Jun 22 11:44 cropped-logo-web-100x100.png | |
-rw-r--r-- 1 sam 3.0K Jun 22 11:44 cropped-logo-web-150x150.png | |
-rw-r--r-- 1 sam 3.3K Jun 22 11:44 cropped-logo-web-180x180.png | |
-rw-r--r-- 1 sam 2.3K Jun 22 11:44 cropped-logo-web-192x192.png | |
-rw-r--r-- 1 sam 5.5K Jun 22 11:44 cropped-logo-web-270x270.png | |
-rw-r--r-- 1 sam 6.3K Jun 22 11:44 cropped-logo-web-300x300.png | |
-rw-r--r-- 1 sam 786 Jun 22 11:44 cropped-logo-web-32x32.png | |
-rw-r--r-- 1 sam 4.2K Jun 22 11:44 cropped-logo-web.png | |
-rw-r--r-- 1 sam 2.1K Jun 22 11:44 logo-web-100x100.png | |
-rw-r--r-- 1 sam 3.0K Jun 22 11:44 logo-web-150x150.png | |
-rw-r--r-- 1 sam 6.3K Jun 22 11:44 logo-web-300x300.png | |
-rw-r--r-- 1 sam 5.5K Jun 22 11:44 logo-web.png | |
sam@Ker.thenumber.ca ~/.../2018/06 | |
$ wp media regenerate --yes | |
Found 5 images to regenerate. | |
1/5 Regenerated thumbnails for "Coffee" (ID 7). | |
2/5 Regenerated thumbnails for "Espresso" (ID 5). | |
3/5 Regenerated thumbnails for "Sandwich" (ID 6). | |
4/5 Regenerated thumbnails for "cropped-logo-web.png" (ID 15). | |
5/5 Regenerated thumbnails for "logo-web" (ID 14). | |
Success: Regenerated 5 of 5 images. | |
sam@Ker.thenumber.ca ~/.../2018/06 | |
$ ll *logo-web* | |
-rw-r--r-- 1 sam 2.1K Jun 22 11:46 cropped-logo-web-100x100.png | |
-rw-r--r-- 1 sam 3.0K Jun 22 11:46 cropped-logo-web-150x150.png | |
-rw-r--r-- 1 sam 6.3K Jun 22 11:46 cropped-logo-web-300x300.png | |
-rw-r--r-- 1 sam 4.2K Jun 22 11:44 cropped-logo-web.png | |
-rw-r--r-- 1 sam 2.1K Jun 22 11:46 logo-web-100x100.png | |
-rw-r--r-- 1 sam 3.0K Jun 22 11:46 logo-web-150x150.png | |
-rw-r--r-- 1 sam 6.3K Jun 22 11:46 logo-web-300x300.png | |
-rw-r--r-- 1 sam 5.5K Jun 22 11:44 logo-web.png | |
sam@Ker.thenumber.ca ~/.../2018/06 | |
$ wp post meta list 14 | |
+---------+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| post_id | meta_key | meta_value | | |
+---------+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| 14 | _wp_attached_file | 2018/06/logo-web.png | | |
| 14 | _wp_attachment_metadata | {"width":512,"height":512,"file":"2018\/06\/logo-web.png","sizes":{"thumbnail":{"file":"logo-web-150x150.png","width":150,"height":150,"mime-type":"image\/png"},"medium":{"file":"logo-web-300x300.png","width":300,"height":300,"mime-t | | |
| | | ype":"image\/png"},"twentyseventeen-thumbnail-avatar":{"file":"logo-web-100x100.png","width":100,"height":100,"mime-type":"image\/png"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyr | | |
| | | ight":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}} | | |
+---------+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
sam@Ker.thenumber.ca ~/.../2018/06 | |
$ wp post meta list 15 | |
+---------+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| post_id | meta_key | meta_value | | |
+---------+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| 15 | _wp_attached_file | 2018/06/cropped-logo-web.png | | |
| 15 | _wp_attachment_context | site-icon | | |
| 15 | _wp_attachment_metadata | {"width":512,"height":512,"file":"2018\/06\/cropped-logo-web.png","sizes":{"thumbnail":{"file":"cropped-logo-web-150x150.png","width":150,"height":150,"mime-type":"image\/png"},"medium":{"file":"cropped-logo-web-300x300.png","width": | | |
| | | 300,"height":300,"mime-type":"image\/png"},"twentyseventeen-thumbnail-avatar":{"file":"cropped-logo-web-100x100.png","width":100,"height":100,"mime-type":"image\/png"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":" | | |
| | | ","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}} | | |
+---------+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment