-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wp media regenerate for PDF thumbnails #131
Comments
Thanks for the report, @MattFCP ! Were you able to track this issue down? Can you share more steps to reproduce? Did your 50 original PDFs have thumbnails, or were they missing entirely? The "No images found" error happens here: media-command/src/Media_Command.php Lines 133 to 139 in 49ef52c
WP-CLI is simply querying post objects from the database, though: media-command/src/Media_Command.php Lines 925 to 945 in 49ef52c
The error would imply that the post objects don't exist. |
Feature Request
I haven't been able to find a way to regenerate PDF thumbnails. Reason I'm trying to is there must have been a bug in WordPress 5 that stopped this from working. It seems to be working now, but I have 50 or so pdfs that I need to regenerate thumbnails for. I tried WP-CLI command "wp media regenerate IMAGEID" and for PDFs it returns the error "No images found". While it works for regular images, it would be nice for this to work for PDFs as well.
Thanks,
Matt
The text was updated successfully, but these errors were encountered: