Amazon Link
[resolved] Changing Image Size (3 posts)

  1. triefy
    Posted 4 years ago #

    Is there anyway to change the size of the image that pulls from Amazon? The thumbnail template displays too small of an image while the image template takes up the majority of my post for what I want to do.

    I have tried to change the size in the code for the template but anything other than width="1" and height="1", it is ignored.

    An older plugin (no longer supported) that was able to add the Amazon Images as actual images in the post so I could resize them. Here is an example of what I did:


  2. paulstuttard
    Plugin Author

    Posted 4 years ago #


    The image sizes are whatever Amazon decide to serve via the AWS so can vary greatly.

    I think you are changing the size of the wrong img tag in the template, you need to add the height and width tags to the first img tag. The second one is for tracking page impressions by Amazon.

    e.g. update the thumbnail template to:

    <div class="al_found%FOUND%">
     <img height="100" width="100" alt="%TITLE%" title="%TITLE%" src="%THUMB%" class="%IMAGE_CLASS%">
    <img src="http://www.assoc-amazon.%TLD%/e/ir?t=%TAG%&l=as2&o=%MPLACE_ID%&a=%ASIN%" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

    Alternatively if you use the Amazon Search Tool in the post/page edit screen to upload the 'large' image to your WordPress media library this will generate image sizes that you usually use for other uploaded media. The plugin will _always_ use this image in preference to any other.

    Hope this helps!


  3. triefy
    Posted 4 years ago #

    Thanks Paul!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Amazon Link
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic