WordPress.org

Ready to get started?Download WordPress

Forums

Blogger Importer
[closed] Migrate Image Files Blogger WordPress (60 posts)

  1. mbselmy
    Member
    Posted 1 year ago #

  2. mbselmy
    Member
    Posted 1 year ago #

    I think now the link is properly shown:
    <a href="http://lh5.ggpht.com/_Hnzp1CzCLDg/TbBwkcFXfJI/AAAAAAAAJ9E/UFIcFnH6QKY/s1600-h/Napoli-SanSevero32.jpg"><img style="background-image: none; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; border-width: 0px;" title="Napoli-SanSevero3" alt="Napoli-SanSevero3" src="http://lh3.ggpht.com/_Hnzp1CzCLDg/TbBwklzoEvI/AAAAAAAAJ9I/PPVKb0ZnT14/Napoli-SanSevero3_thumb.jpg?imgmax=800" width="244" height="180" border="0" /></a>

  3. Workshopshed
    Member
    Plugin Author

    Posted 1 year ago #

    The s1600-h folder is where blogger has linked to a html file rather than an image, the code is supposed to handle that scenario with a filter function. I'll add a file with the same name to my test data tomorrow and see if I can reproduce the issue on my system. There is also a parameter ?imgmax=800 which I suspect is causing an issue.
    It should be safe to strip that off in the remappping function.

  4. mbselmy
    Member
    Posted 1 year ago #

    Ok Andy!
    Thanks.
    --
    Magdy

  5. Workshopshed
    Member
    Plugin Author

    Posted 1 year ago #

    Magdy, I've uploaded a fix for the importer where it correctly processes the files with ?imgmax etc as part of the filename.
    You can see the latest version here.
    http://core.trac.wordpress.org/attachment/ticket/4010/blogger-importer.zip

    N.B. You will need to delete your imported posts and images and re-run as this won't fix the images that did not import correctly the first time. Don't forget to empty the trash after deleting the posts.

  6. mbselmy
    Member
    Posted 1 year ago #

    Hi Andy!

    Wow, now everything goes just perfect!!
    Importing stoped at 139 images, but then a clicked refresh blog list import again and continues where it stops before.

    I noticed that some images that have large sizes where imported in small size. I tried to find more from where the large image was coming.
    And found this source for the not so large images, but larger than what was imported - https://lh3.googleusercontent.com/-CfLZKSOatbU/T-XuFSeohvI/AAAAAAAALZw/1wX_Pgv13H0/s800/10.jpg

    Coming from lh3.googleusercontent.com. Note sure if this is already added. But maybe can help improve more the plugin.

    That's it!
    Thanks again!
    --
    Magdy

  7. Workshopshed
    Member
    Plugin Author

    Posted 1 year ago #

    I notice that the latest file not to work has a HTTPS prefix. I've added one of those to my test data to ensure those work too.

  8. realdoublebee
    Member
    Posted 9 months ago #

    When I tried this plugin, it moved 800 posts, 1200 comments, but the images seem to stall out after about 40 or 50, if I rerun, it will increase the number buts its slow going, I've never updated a link yet. Any advice on this? Thanks for everything so far, this is the only solution I've found that got me at least 25% of my photos with about 1600 more to go.

  9. Workshopshed
    Member
    Plugin Author

    Posted 9 months ago #

    Hi RealDoubleBee,
    I'm not quite certain where the performance issue lies with this. It could be in the reading of the posts to determine if they have got images in them, it could be the downloading of the images from blogger, it could be the resizing of the images to the various wordpress sizes or it might even be updating the posts with the new image links.
    I'll see if I can add some timing information to my test version to highlight where the issue is.

    It is trying to down load high resolution files so if you want you could download smaller ones by changing the setting.

    Out of interest, are all your images http or https links?

    If you open a wordpress in a second window/tab do you see the images arriving in your gallery?

    My next release has some improvements to other areas but nothing for the images yet so its not really worth waiting for that.

    You might just be best letting it run. One chap said he left his for 24hrs but he did have a significantly larger setup than you.

    Hope it gets you there eventually.

  10. realdoublebee
    Member
    Posted 9 months ago #

    All the images are coming from http://3.bp.blogspot.com/

    When I open the media library I refresh the screen and see them adding, then I can tell by the amount of time since the last photo was added if the import has stopped running, it works for about 40, then it stops importing, when I refresh and click import it goes again...

    Oddly enough, each time I refresh it finds 5 new comments, I'm at 1288 of 1217 right now lol

    I will leave it running all night tonight but I'm not convinced anything is happening after about 5 minutes or so.

  11. Workshopshed
    Member
    Plugin Author

    Posted 9 months ago #

    That sounds of a bit of a painful process, I wonder if it is something like Google is throttling the connection or we have a memory leak type problem?

    I'll make a note of the comments issue, its probably counting wrong or worse duplicating comments.

  12. realdoublebee
    Member
    Posted 9 months ago #

    Is it possible to stop the resizing them to medium and just import them a full size whatever their current full size is?

  13. Workshopshed
    Member
    Plugin Author

    Posted 9 months ago #

    You could try changing the sizes of the images as defined in WordPress' Settings->Media option.

    Did you come to any conclusion as to if it was a stop or a slow down? If it's working very hard or using a lot of memory it might behave like it's stopped anyway.

  14. ethanbeyer
    Member
    Posted 9 months ago #

    Hello,
    I was so excited to find this plugin - it says it does exactly what I need it to in these forums, but if I download the release from wordpress.org, it says that images is one of the things not downloaded. I may just be daft - but is there a link to the current dev/working version that also imports images that you could provide me with?

    I'd love to help beta test it for you, if nothing else.

    Thanks!

  15. Workshopshed
    Member
    Plugin Author

    Posted 9 months ago #

    Ethan, the beta has to be manually installed it can be downloaded from

    http://core.trac.wordpress.org/attachment/ticket/4010/blogger-importer.zip

    There are some more recent changes but it's not in a operation mode at the moment, hope to have some time to work on it later today.

  16. ethanbeyer
    Member
    Posted 9 months ago #

    Thanks for your reply - I wasn't sure if I was missing a step somewhere. But ironically, I've run into another snag.

    I uploaded the blogger-importer folder to /wp-content/plugins/ and then when I log into the back end, it doesn't even show up in the plugins list. So I'm not sure what to do from there...

  17. realdoublebee
    Member
    Posted 9 months ago #

    Ethan,

    Try adding a new plugin, then clicking UPLOAD, then search for the zip file you downloaded and upload it from there. Once its up you should be able to activate it.

    Then choose tools, import, blogger and you'll be ready to import awesomeness.

  18. ethanbeyer
    Member
    Posted 9 months ago #

    *headsmack*

    I am such a dope. Thanks. I will report back with my results after I have some.

  19. Alexis403
    Member
    Posted 9 months ago #

    Hi, I need to use this for a client, so I just want to be sure before using. I have downloaded the newer version of the blogger import plugin that was given by the plugin contributor located here: http://core.trac.wordpress.org/attachment/ticket/4010/blogger-importer.zip

    I just want to be clear. When I upload and activate this plugin. Does it then replace the old Blogger Importer in the Tools section? So all I have to do is go to Tool, then Import, then Blogger and it will import all posts, comments, AND images? Just need to be sure that all important things will be included in one swap, images being the most important.

  20. Workshopshed
    Member
    Plugin Author

    Posted 9 months ago #

    The tools import can install the plugin for you so you can replace it with the beta one. You should only have one version of the plugin listed in your plugins and it does replace the one in the tools section and is used in the same way from tools menu.

    Yes, it's aim is to migrate posts, comments and images but it is still a beta so may have some issues, the main one being the progress bar for images not updating correctly.

  21. Workshopshed
    Member
    Plugin Author

    Posted 8 months ago #

    realdoublebee, the issue with counting the comments is that it's also counting pingbacks so it's just the count that is wrong. I don't think it's bringing the same comments in more than once.

  22. Thierry.k
    Member
    Posted 8 months ago #

    Hi Andy,

    I am also trying to import my blogspot blog to wordpress... I tried your lastest plugin. I get same issue as Magdy and Realdoublebee, which is the batch stops after a while on the pictures import process. It starts from the point it left when I press again "Import". But now, I am at 453 pictures imported and it will not go any further even though I press "Import" again.
    If I can be of any help for you to work on this, please let me know what information you need.

    Now, I deleted all the posts because I realised I forgot to delete them before using your plugin. The problem is now that the posts are skipped during the import even though they don't exist. I tried "Refresh blog list" and "Clear account information", none is working. So as a result, my blog is now empty :)
    http://cv-trial.zz.mu/
    Thierry

  23. Workshopshed
    Member
    Plugin Author

    Posted 8 months ago #

    You need to empty the trash before re-running, there is some strange behaviour including locking up on the images if you have posts in the trash.

  24. Thierry.k
    Member
    Posted 8 months ago #

    No, I don't think it was downloading pictures after I deleted the posts (if this is what you mean).

  25. Workshopshed
    Member
    Plugin Author

    Posted 8 months ago #

    Thierry,
    when you delete the posts in WordPress, they don't get deleted immediately, they get marked as "trash".

    http://codex.wordpress.org/Trash_status
    http://en.support.wordpress.com/trash

    When you mentioned it stopped working with deleted posts I checked and can confirm that there is a bug where it loops indefinitely if you have records in the trash when importing.

    So you should find that if you empty the trash then it can process the images correctly.

    Cheers,

    Andy

  26. Thierry.k
    Member
    Posted 8 months ago #

    Hi Andy,
    I'm so sorry you had to write this. I actually cleared the trash after your first response and I managed to redownload the posts.
    It's the importing images batch that was still failing/stopping after.
    Sorry for the confusion.

    At the moment, I am trying to get my pics another way around using Cache Images pluging. But it also fails as it downloads the pictures into media but fails to overwrite the links to picasa.

  27. Workshopshed
    Member
    Plugin Author

    Posted 8 months ago #

    If you've not too many then you might try a find and replace plugin to swap around the URL pointing at the images, you'll need to old and new URLs.
    The Picassa links are particularly tricky to process as they often have a .JPG extension but are actually a web page.

  28. Thierry.k
    Member
    Posted 8 months ago #

    I spent time looking for this plugin but I cannot find it. If you (or someone passing by here) has an idea, I'd love to use it.
    You are correct, picasa images links hard complex. For example, Cache Imagines plugin is supposed to do replace the URLs of the images, but because of the blogger html code of the pics :

    <a href="http://3.bp.blogspot.com/-GuFcc2Pyr5I/UMozipOvE3I/AAAAAAAAtxQ/h70qm-riUMg/s1600/DSC00544.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://3.bp.blogspot.com/-GuFcc2Pyr5I/UMozipOvE3I/AAAAAAAAtxQ/h70qm-riUMg/s320/DSC00544.JPG" width="320" /></a></div>
    <br />
    (see how last folder in the path is different)
    then Cache Images plugin will not manage to replace the URL. It's quite a headhache to handle this. And I thought I am not the only one to import from blogger to wordpress. But I must be the only one in this particular case.

  29. Workshopshed
    Member
    Plugin Author

    Posted 8 months ago #

    The beta version should be able to handle this case. The s1600 and s320 are the file sizes. What I'd expect the importer to do is to download the larger size and then generate the smaller size from it.

  30. Thierry.k
    Member
    Posted 8 months ago #

    Yes but I spent quite a while trying to use the importer but it was stuck at 485 pictures and would not continue (I checked I still have room on the server). If you look at my blogpsot page (http://cigogne-voyageuse.blogspot.com), I have a biiig number of pic intergated in my posts from Picasa. Maybe you have some idea for me to make this transfer working. I'll continue working on blogspot meanwhile. As you can notice, I am almost one year behind on my posts, and I am still traveling so you can imagine how late I am now :)
    A big thanks for your help anyway and the time you spend answering. Not all the coders do that and it's something appreciated here.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags