WordPress.org

Ready to get started?Download WordPress

Forums

Getting closer to import success - 1 issue with media links. Any ideas? (3 posts)

  1. douglerner
    Member
    Posted 2 years ago #

    To make a long story short, I have a Posterous blog. In March, after the Twitter takeover announcement, I decided I wanted out and decided to try wordpress.com. So I imported my Posterous blog into wordpress.com.

    It turns out there are some technical issues with wordpress.com that I was not able to resolve, so I decided to try a self-hosted wordpress blog. So I exported from wordpress.com and imported to my self-hosted blog.

    The results were less than satisfactory, because so many images didn't get imported and attached. And for some reason many that did looked blurry.

    Yesterday, as an experiment I recreated the blog from scratch - new instance - and tried the "Posterous importer" plugin - not using the wordpress.com export at all.

    It worked better than the wordpress blog in that (1) I didn't end up with any fuzzy thumbnails. They all looked sharp and (2) It didn't bring in the media and leave it unattached cluttering the area.

    But even though it brought in 145 photos, it still left hundreds with the src attribute pointing to Posterous.

    I found another plugin "Add linked images to gallery" that is designed for that purpose - it hunts down the original image, adds it to the media library and changes the src attributes in the posts to correspond to the new local media.

    That worked! Very nice plugin!

    So all the media is now local. Whew.

    However (there is always a however)... the images themselves are surrounded by anchor tags (so you can see the full-sized image). THOSE links still point to Posterous!

    My question is, is there any way, other then slogging through hundreds of posts, one by one, and editing those surrounding link href attributes to match the corrected src attributes?

    Thanks,

    doug

  2. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    Perhaps a find/replace in the database?

  3. douglerner
    Member
    Posted 2 years ago #

    It doesn't look look like one pattern though. Each src attribute depends on the name of the file and where it was imported to.

    For example, for one post, the href link goes to

    http://getfile4.posterous.com/getfile/files.posterous.com/douglerner/Kpa29WurRuQIpe9eaGUe5FIIH5VYcEu8ZtEOBSDEVDPqww647DpNnTpwKsui/photo.jpg.scaled.1000.jpg

    but the src attribute for the displayed image goes to

    http://lerner.net/blog/wp-content/uploads/2012/06/photo35.jpg.scaled.50035.jpg

    Still, your suggestion is better than opening up each post one by one. Is the database table that easy to edit?

    Thanks,

    doug

Topic Closed

This topic has been closed to new replies.

About this Topic