{"id":863,"date":"2024-05-07T11:44:39","date_gmt":"2024-05-07T11:44:39","guid":{"rendered":"https:\/\/kb.shortpixel.com\/docs\/why-arent-the-pngs-converted-to-jpegs-even-when-i-choose-this-option\/"},"modified":"2025-08-27T08:41:41","modified_gmt":"2025-08-27T08:41:41","password":"","slug":"why-arent-the-pngs-converted-to-jpegs-even-when-i-choose-this-option","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/why-arent-the-pngs-converted-to-jpegs-even-when-i-choose-this-option\/","title":{"rendered":"Why aren&#8217;t the PNGs converted to JPEGs even when I choose this option?"},"content":{"rendered":"\n<p>PNGs won&#8217;t be converted to JPEGs even if you choose to do so, mainly because of one of these 4 reasons:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The resulting JPEG is bigger than the optimized PNG. In this case, the PNG version of the image will be kept.\u00a0This usually happens with small (up to ~50KB) PNG files which are smaller than their JPEG counterparts.\u00a0<\/li>\n\n\n\n<li>The original PNG contains transparent pixels and you <strong>did not<\/strong> choose the &#8220;<strong>Force conversion of transparent images<\/strong>&#8221; option on ShortPixel&#8217;s settings:<br><img decoding=\"async\" width=\"1000\" height=\"112\" class=\"wp-image-1484\" style=\"width: 1000px;\" src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241204_094117.jpg\" alt=\"\" srcset=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241204_094117.jpg 1826w, https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241204_094117-300x34.jpg 300w, https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241204_094117-1024x114.jpg 1024w, https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241204_094117-768x86.jpg 768w, https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241204_094117-1536x172.jpg 1536w, https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/Screenshot-20241204_094117-360x40.jpg 360w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/li>\n\n\n\n<li><p>There are some PHP functions missing from your server installation (like the GD library), which make ShortPixel silently fail to convert the PNG image to JPEG. You can easily check whether this is the case using this <a href=\"https:\/\/shortpixel.com\/img\/tests\/dandelion.png\" target=\"_blank\" rel=\"noopener\">test PNG image<\/a> as it converts well to JPEG if the necessary PHP libraries are present.<\/p><\/li>\n\n\n\n<li><p>The original PNGs are big and converting them to JPEGs requires more memory than it is available on your server, so the operation fails with the error &#8220;<strong>Not enough memory to convert from PNG to JPG<\/strong>&#8220;<em style=\"background-color: initial;\">.\u00a0<\/em>This usually happens on websites hosted on shared hosting plans. Sometimes this error can be triggered by another plugin, even if it doesn\u2019t seem related to ShortPixel. In this case, our suggestion is to deactivate all plugins and then try again. If it works, activate your plugins one by one and try the optimization after each activation. This way you will find the plugin that causes that issue.<\/p><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>PNGs won&#8217;t be converted to JPEGs even if you choose to do so, mainly because of one of these 4 reasons:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[37],"glossaries":[],"doc_tag":[],"class_list":["post-863","docs","type-docs","status-publish","hentry","doc_category-shortpixel-image-optimizer"],"blocksy_meta":[],"year_month":"2026-04","word_count":237,"total_views":"1163","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin_mdli53m5","author_url":"https:\/\/kb.shortpixel.com\/author\/admin_mdli53m5\/"},"doc_category_info":[{"term_name":"ShortPixel Image Optimizer","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/shortpixel-image-optimizer\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/comments?post=863"}],"version-history":[{"count":1,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/863\/revisions"}],"predecessor-version":[{"id":1485,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/863\/revisions\/1485"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=863"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=863"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=863"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}