Support » Themes and Templates » Jetpack plugin caused wordpress to change img dimensions after upload to server

  • Hi All

    I am really frustrated about this issue.
    Using the jetpack and found that this issue is related to jetpack – disabled this plugin and the problem stopped, but had to activate it again because I am relying this plugin for galleries.
    After working on the style of a website I am building as usual in localhost I decided to upload all files and db to the server and now I see that wordpress has decided to change the dimensions of the images and of the captions (and text).

    The code for an image for example:

    [caption id="attachment_10" align="alignright" width="541"]<a href="http://localhost/2015/aria_photography/WORDPRESS/public_html/?page_id=34"><img class="categories-link-img wp-image-10 size-full" src="http://localhost/2015/aria_photography/WORDPRESS/public_html/wp-content/uploads/2015/05/10620347_1562259390673398_1710544481334849133_o-e1433781028977.jpg" alt="Categories Link Image" width="541" height="304" /></a> CATEGORIES[/caption]

    The html output generated correctly in localhost:

    <div id="attachment_10" class="wp-caption alignright" style="width: 541px"><a href="http://localhost/2015/aria_photography/WORDPRESS/public_html/?page_id=34"><img class="categories-link-img wp-image-10 size-full" src="http://localhost/2015/aria_photography/WORDPRESS/public_html/wp-content/uploads/2015/05/10620347_1562259390673398_1710544481334849133_o-e1433781028977.jpg" alt="Categories Link Image" width="541" height="304"></a><p class="wp-caption-text" style="opacity: 1; display: block;">CATEGORIES</p></div>

    The corrupted html output as generated in the server:

    <div id="attachment_10" class="wp-caption alignright" style="width: 541px"><a href="http://aryaph.com/?page_id=34"><img class="categories-link-img wp-image-10 size-full" src="http://i1.wp.com/aryaph.com/wp-content/uploads/2015/05/10620347_1562259390673398_1710544481334849133_o-e1433781028977.jpg?resize=541%2C304" alt="Categories Link Image" width="517" height="291"></a><p class="wp-caption-text" style="opacity: 1; display: block;">CATEGORIES</p></div>

    why is it rendering the same code with the same image with different dimensions?
    and how can I correct it?
    Please help me….

Viewing 1 replies (of 1 total)
  • Thread Starter Hagai Shaul

    (@hagai)

    I Found the problem – photon option in jetpack plugin.
    The workaround is to disable it.
    Contacting jetpack support team to resolve this issue.

Viewing 1 replies (of 1 total)
  • The topic ‘Jetpack plugin caused wordpress to change img dimensions after upload to server’ is closed to new replies.