Support » Plugin: ImageInject » CC image huge

  • Resolved benwaynet

    (@benwaynet)


    Just installed your plugin and used it in a new post.
    For some reason the CC image is show up huge.
    http://www.benway.net/2014/09/12/digital-rentals-next-generation-game-consoles/

    The code looks like this:
    [caption id="" align="alignright" width="240"]<img class="alignright" title="New Xbox One by netzkobold" src="http://www.benway.net/wp-content/uploads/2014/09/8772557228_d5f66c4cd4_m_xbox-one.jpg" alt="xbox one photo" width="240" /> <small><a style="text-decoration: none;" title="Image inserted by the ImageInject WordPress plugin" href="http://wpinject.com/" rel="nofollow">Photo</a> by <a href="http://www.flickr.com/photos/59308757@N00/8772557228" target="_blank">netzkobold</a> <a title="Attribution-ShareAlike License" href="http://creativecommons.org/licenses/by-sa/2.0/" target="_blank" rel="nofollow"><img src="http://www.benway.net/wp-content/plugins/wp-inject/images/cc.png" alt="" /></small></a>[/caption]

    https://wordpress.org/plugins/wp-inject/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Thomas Hoefter

    (@thoefter)

    Thats odd, it seems your theme or some plugin does automatically add size and width parameters to the CC image (which are way too large). They are not there in the code in your post above, which I guess you took from the “edit post” screen in your admin?

    Can you check if it works when you switch the theme or disable all plugins temporarily?

    Turned off jetpack’s photon so I could see the code better after the page is rendered.

    Didn’t stop it from displaying odd, but I can see the source code cleaner.

    Testing more.

    Does this output help you find the cause:

    <div style="width: 250px" class="wp-caption alignright"><img class="alignright" title="New Xbox One by netzkobold" src="http://www.benway.net/wp-content/uploads/2014/09/8772557228_d5f66c4cd4_m_xbox-one.jpg" alt="xbox one photo" width="240" /><p class="wp-caption-text"><small><a href="http://wpinject.com/" onclick="ga('send', 'event', 'outbound-article', 'http://wpinject.com/', 'Photo');" style="text-decoration: none;" title="Image inserted by the ImageInject WordPress plugin" rel="nofollow">Photo</a> </small>by <a href="http://www.flickr.com/photos/59308757@N00/8772557228" onclick="ga('send', 'event', 'outbound-article', 'http://www.flickr.com/photos/59308757@N00/8772557228', 'netzkobold');" target="_blank">netzkobold</a> <a href="http://creativecommons.org/licenses/by-sa/2.0/" onclick="ga('send', 'event', 'outbound-article', 'http://creativecommons.org/licenses/by-sa/2.0/', '');" title="Attribution-ShareAlike License" target="_blank" rel="nofollow"><img src="http://www.benway.net/wp-content/plugins/wp-inject/images/cc.png" alt="" /></a></p></div>

    Plugin Author Thomas Hoefter

    (@thoefter)

    In this output the problem does not exist.

    This is the code of the CC image and it does not yet contain the width and height parameters I saw when checking on your site, meaning they get added later by some plugin / theme: <img src="http://www.benway.net/wp-content/plugins/wp-inject/images/cc.png" alt="" />

    I ended up just changing the plugin to put the Attribution to the end of the post and its working now.
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘CC image huge’ is closed to new replies.