Make WordPress Core

Opened 15 years ago

Closed 11 years ago

Last modified 5 years ago

#12322 closed defect (bug) (worksforme)

Blog import fails to generate reduced-size images

Reported by: daveabrahams's profile daveabrahams Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Import Keywords:
Focuses: 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 (11)

#1 @daveabrahams
15 years ago

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

#2 @daveabrahams
15 years ago

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.

#3 @daveabrahams
15 years ago

  • Keywords import added

#4 @scribu
15 years ago

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

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

#5 @ryan
14 years ago

  • Milestone changed from 3.0 to 3.1

#6 @nacin
14 years ago

  • 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?

#7 @dd32
14 years ago

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

#8 @duck_
13 years ago

  • 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.

#9 @c3mdigital
11 years ago

  • Keywords reporter-feedback needs-testing close removed
  • Resolution set to worksforme
  • Status changed from new to closed

#10 @SergeyBiryukov
11 years ago

  • Milestone WordPress.org deleted

This ticket was mentioned in Slack in #core-editor by youknowriad. View the logs.


5 years ago

Note: See TracTickets for help on using tickets.