Opened 3 years ago

Last modified 15 months ago

#12322 new defect (bug)

Blog import fails to generate reduced-size images

Reported by: daveabrahams Owned by:
Priority: normal Milestone: WordPress.org
Component: Import Version:
Severity: normal Keywords: reporter-feedback needs-testing close
Cc:

Description

I just imported from http://daveabrahams.wordpress.com (go ahead, try it yourself if you like) and chose to "Import Attachments." The only images from the original site that show up in the result are those that were originally displayed with size-full. The others need to be regenerated by inserting them freshly.

Change History (8)

Actually the problem is that the URL syntax is different. The imported URL is:

path/to/image/file?w=width-of-image

and the required URL syntax is

path/to/image/file-HDIMxVDIM.jpg

This seems difficult to work around at best

Looks like the fix needs to be made somewhere around tags/2.9.2/wp-admin/import/wordpress.php#L651 but now my expertise is exhausted. Would really appreciate a fix or this importing business is going to be painful.

Thanks.

  • Keywords image,size,import added; image,size removed
  • Keywords image size import added; image,size,import removed
  • Milestone changed from Unassigned to 3.0
  • Severity changed from major to normal

In the meantime, you could use the Regenerate Thumbnails plugin.

comment:5   ryan3 years ago

  • Milestone changed from 3.0 to 3.1
  • Keywords reporter-feedback added; image size import removed
  • Milestone changed from Awaiting Triage to Awaiting Review

Still an issue? Looks like a wp.com issue?

comment:7   dd322 years ago

  • Keywords needs-testing added
  • Milestone changed from Awaiting Review to WordPress.org
  • Keywords close added

This mostly worksforme when testing with the theme test data. All resized images show up correctly in post content. However, it relies on browser resizing of the full size image, e.g.

<img src="http://wp.dev/wp-content/uploads/2010/08/boat.jpg?w=300" alt="" title="boat" width="300" height="198" class="size-medium wp-image-544">

All images have their resized equivalents created and saved to disk, e.g. boat.jpg, boat-150x150.jpg and boat-300x198.jpg.

Note: See TracTickets for help on using tickets.