WordPress.org

Ready to get started?Download WordPress

Forums

Cache Images
Command line version? (18 posts)

  1. David Radovanovic
    Member
    Posted 3 years ago #

    Here are some scan results:

    # 1.bp.blogspot.com (results: 287)
    # 4.bp.blogspot.com (results: 282)
    # 3.bp.blogspot.com (results: 235)
    # 1.bp.blogspot.com (results: 287)
    # 4.bp.blogspot.com (results: 282)
    # 3.bp.blogspot.com (results: 235)

    issue is that it is very slow going...
    Anyway to do this via command-line?
    Also, if I successfully complete one of the line results, and scan again, it finds the already successfully completed images as if they were not cached properly.

    Either way, great plugin!

  2. Milan Dinić
    Member
    Plugin Author

    Posted 3 years ago #

    Speed of caching depends on your server. For every image, WordPress needs to sideload image and generate thumbnails which number varies depending on image's size and setup. It also needs to read image's metadata.

    Maybe something can be coded for use in command line but I don't recommend that since time you waste on coding is longer then one which needs for current usage.

    There is a problem with some images from Blogger, see here.

  3. David Radovanovic
    Member
    Posted 3 years ago #

    Thanks for fast reply. What would be involved to fix the odd name import problem which prevents successful imports of images, i.e. http://1.bp.blogspot.com/_Udy7KQ7J3aU/R-O9vB_Lr6I/AAAAAAAAAII/wz4Qs3iOND4/s320/farm pix 186.jpg

    The import process never seems to complete these:

    # bp3.blogger.com (results: 4)
    # bp2.blogger.com (results: 4)
    # bp0.blogger.com (results: 5)
    # 1.bp.blogspot.com (results: 88)
    # 4.bp.blogspot.com (results: 238)
    # 3.bp.blogspot.com (results: 75)

    no matter how many times I try.

    Thanks again!

  4. mahjong
    Member
    Posted 3 years ago #

    Hi!

    Install hotlink image cacher. Park a domain on your current domain. Change to the parked domain.
    Example: you have yourdomain.com and you change it to yourdomain.co.cc
    Use hotlinked image cacher to cache blogspot images. After cached, change back to your old domain. Use cache images, and cache images from your other, parked domain. I used this little trick with those images.

  5. David Radovanovic
    Member
    Posted 3 years ago #

    Mahjong, cool. To clarify: register new domain with different extension, i.e. chefsconsortium.com --> chefsconsortium.us? Would subdomain work, i.e. images.chefsconsortium.com?

  6. David Radovanovic
    Member
    Posted 3 years ago #

    Here is my interpretation:

    1. Installed HLIC.
    1. Register *.us version of my site's domain at GoDaddy.
    2. Logged onto my web host's cpanel.
    3. Parked new *.us domain via cpanel.
    4. Created redirection to original *.com site.
    5. Logged into GoDaddy and changed A Record of *.us to my same IP as my *.com.
    6. Waited for A Record to propagate; 5 minutes.
    7. Changes my WordPress site (via wp-admin) from *.com to *.us.
    8. Imported images via HLIC.
    9. Changed back to *.com, SEE: 7 above.
    10. Used Cache Images to import from *.us domain.

  7. David Radovanovic
    Member
    Posted 3 years ago #

    Well... I did something wrong. Had to change the url back to *.com via phpMyAdmin. Any help would be much appreciated. Thanks.

  8. Milan Dinić
    Member
    Plugin Author

    Posted 3 years ago #

    Guys, is it really necessary to buy a new domain just for this? Wasn't better to pay with that money to developers?

    OK, now that I see that this is extremely important issue, I promise I will look for a solution.

  9. David Radovanovic
    Member
    Posted 3 years ago #

    Sorry for the obvious. Pay with money to developers: of course. Please give me a price.

  10. Milan Dinić
    Member
    Plugin Author

    Posted 3 years ago #

    Please try development version, it tries to fix issue with Blogger's URLs.

    Sorry for the obvious. Pay with money to developers: of course. Please give me a price.

    I don't ask you to pay me, I just said that if you already pay because of this issue, it's better to pay to plugin's developers, or to someone other who can fix issue for everyone. ;)

  11. David Radovanovic
    Member
    Posted 3 years ago #

    How about you?

  12. Milan Dinić
    Member
    Plugin Author

    Posted 3 years ago #

    Have you tried development version I mentioned above?

  13. mahjong
    Member
    Posted 3 years ago #

    Dpaule: yes, subdomain should work, or any domain from freedns.afraid.org or co.cc. You just park it on your installation (do not redirect it!), then use HLIC which will cache blogspot images (i'm not sure, because my images were not from blogspot, but still not cached with this plugin) in your wpcontent/uploads/hlic dir, or whatever. But before that, you have to change the domain to the parked domain of yours (of course after propagation, so you can open wp-admin with that domain too.) Cache the blogspot images with HLIC (beware, do not cache it from your other parked domain! - it will download every image and change their location to yourdomainusedwithHLIC/wpcontent/uploads/hlic)
    Now change back to the main domain, login to wp-admin, and use cache images to cache from the other domain of yours (so basically you cache from local domain, and hlic renamed files so you will not have any problem with characters anymore)

    maybe it seems difficult, but if you installed both plugins and have a main and a parked domain too, then it is just about changing the wordpress url in wp admin twice.
    change the domain ->use HLIC ->change back -> use cache images
    Thats it.
    I think your problem was that you were not waiting for the domain to point to your host, OR the redirection - you don't have to redirect any of the domains. You have to be able to use your wordpress site from the parked domain of yours too.

  14. Milan Dinić
    Member
    Plugin Author

    Posted 3 years ago #

    dpaule, mahjong: have you tried development version, I pushed some code that should now cache all images from Blogger?

    Please try it so that I know is this fixed since I'll release a new version with some bug fixes today.

  15. David Radovanovic
    Member
    Posted 3 years ago #

    Wow... seems like it's running fine. Thanks!! I'll let you know if there are any problems after it finishes up caching the rest of my 300+ images.

  16. David Radovanovic
    Member
    Posted 3 years ago #

    Ooops, take that back: *.bmp images don't seem to get imported. BTW, these bmp images are from a blogger site.

  17. David Radovanovic
    Member
    Posted 3 years ago #

    Is there a way to print the code on the screen as the images are being processed for debugging?

  18. Milan Dinić
    Member
    Plugin Author

    Posted 3 years ago #

    *.bmp images don't seem to get imported

    Only jp(e)g, png and gif images can be imported. This is because of WordPress function that is used for importing to media library. Note that even if you manually upload BMP photo to media library, WordPress will not consider it as an image, but instead as simple file.

    Is there a way to print the code on the screen as the images are being processed for debugging?

    What code?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic