Title: [Plugin: Add Linked Images To Gallery] Only getting thumbnail.  Doesn&#039;t work with HTTPS
Last modified: August 20, 2016

---

# [Plugin: Add Linked Images To Gallery] Only getting thumbnail. Doesn't work with HTTPS

 *  [anielsen](https://wordpress.org/support/users/anielsen/)
 * (@anielsen)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-add-linked-images-to-gallery-only-getting-thumbnail-doesnt-work-with-https/)
 * This is a great plugin, and with a little tweaking I was able to get it to work
   with Pages as well as Posts, but I am now running into two issues:
 * 1) The IMG tag in my case is linking to a thumbnail copy of the image and the
   outer a href is pointing to the full sized image. This plugin only grabs a copy
   of the thumbnail.
 * 2) It doesn’t work with images that are linked using HTTPS.
 * [http://wordpress.org/extend/plugins/add-linked-images-to-gallery-v01/](http://wordpress.org/extend/plugins/add-linked-images-to-gallery-v01/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [anielsen](https://wordpress.org/support/users/anielsen/)
 * (@anielsen)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-add-linked-images-to-gallery-only-getting-thumbnail-doesnt-work-with-https/#post-3104658)
 * I may have partially solved my own issue. Line 305 of import-external-images.
   php has the following code:
    `preg_match( '/^http:\/\//' , $uri )`
 * I changed it to:
    `preg_match( ‘/^http/’ , $uri )’
 * Now it includes HTTPS links, which as it turns out were what my full image hrefs
   started with.
 * However I am running into a few more issues:
    1) This isn’t finding files that
   end with all caps (i.e. JPG) 2) It doesn’t seem to gracefully handle image URL’s
   with %20’s in them.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Add Linked Images To Gallery] Only getting thumbnail. Doesn't
work with HTTPS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/add-linked-images-to-gallery-v01.
   svg)
 * [Add Linked Images To Gallery](https://wordpress.org/plugins/add-linked-images-to-gallery-v01/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-linked-images-to-gallery-v01/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-linked-images-to-gallery-v01/)
 * [Active Topics](https://wordpress.org/support/plugin/add-linked-images-to-gallery-v01/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-linked-images-to-gallery-v01/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-linked-images-to-gallery-v01/reviews/)

## Tags

 * [href](https://wordpress.org/support/topic-tag/href/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [thumbnail](https://wordpress.org/support/topic-tag/thumbnail/)

 * 1 reply
 * 1 participant
 * Last reply from: [anielsen](https://wordpress.org/support/users/anielsen/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-add-linked-images-to-gallery-only-getting-thumbnail-doesnt-work-with-https/#post-3104658)
 * Status: not resolved