Wrong thumbnails created after using plugin wordpress-importer
-
I used the plugin wordpress-importer 0.6.4 to copy the contents of a remote site (using WordPress 2.9.2) to a site on my local computer (using WordPress 4.9.8).
A typical post looks like
<a href="https://localhost/roadsigns/wordpress/wp-content/uploads/2018/10/skate-ch-1.jpg"><img class="alignnone size-thumbnail wp-image-1072" title="skate-ch-1" src="https://localhost/roadsigns/wordpress/wp-content/uploads/2018/10/skate-ch-1-145x150.jpg" alt="skate-ch-1" width="145" height="150" /></a>
but while the remote wp-content/uploads contains
skate-ch-1.jpg skate-ch-1-145x150.jpg skate-ch-1-290x300.jpg
the local wp-content/uploads contains
skate-ch-1.jpg skate-ch-1-100x100.jpg skate-ch-1-150x150.jpg skate-ch-1-291x300.jpg
As a result, most posts do not show the thumbnail. In this example skate-ch-1.jpg is 500×516 pixels.
I can fix this by replacing the local wp-content/uploads folder with the remote one, as imagine the thumbnails are not referenced in the database, but I was wondering how I could have imported the images in order to preserve the previous thumbnail sizes.
These web pages are produced with WordPress, using the theme Neo-Sapien version 0.6 by Small Potato as amended with some additions from theme Monotone 1.1 by Noel Jackson / eight6.
- The topic ‘Wrong thumbnails created after using plugin wordpress-importer’ is closed to new replies.