WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. triefy
    Member
    Posted 2 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:
    http://www.destroythebrain.com/news/home-invasion/home-invasion-dvd-blu-ray-releases-for-october-4th-2011

    http://wordpress.org/extend/plugins/amazon-link/

  2. paulstuttard
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    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%">
     %LINK_OPEN%
     <img height="100" width="100" alt="%TITLE%" title="%TITLE%" src="%THUMB%" class="%IMAGE_CLASS%">
    %LINK_CLOSE%
    <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;" />
    </div>

    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!

    Paul

  3. triefy
    Member
    Posted 2 years ago #

    Thanks Paul!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic