{"id":887,"date":"2024-05-07T11:45:05","date_gmt":"2024-05-07T11:45:05","guid":{"rendered":"https:\/\/kb.shortpixel.com\/docs\/why-there-are-image-jpeg-webp-and-also-image-webp-files-on-my-disk\/"},"modified":"2025-08-27T08:41:09","modified_gmt":"2025-08-27T08:41:09","password":"","slug":"why-there-are-image-jpeg-webp-and-also-image-webp-files-on-my-disk","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/why-there-are-image-jpeg-webp-and-also-image-webp-files-on-my-disk\/","title":{"rendered":"Why are there image.jpg.webp files instead of image.webp files on my disk?"},"content":{"rendered":"\n<p>If <a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-image-optimiser\/\" rel=\"noopener\">ShortPixel Image Optimizer<\/a> (SPIO) is creating WebP files with the extension <code>.jpg.webp<\/code>&nbsp;instead of <code>.webp<\/code>, this could be because:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You have two images with the same identical filename but different extensions. For example, <code>image.png<\/code> and <code>image.jpg<\/code>. In this case, SPIO will need to create one of the WebP files with a double extension to distinguish one from the other.<\/li>\n\n\n\n<li>There was already a WebP file existing on the disk, and therefore, while optimizing the image, SPIO had to create a <code>.jpg.webp<\/code> version in order to avoid overwriting it.<\/li>\n\n\n\n<li>You have added the constant <code>SHORTPIXEL_USE_DOUBLE_WEBP_EXTENSION<\/code> in your wp-config.php file. For more information: <a href=\"https:\/\/help.shortpixel.com\/article\/276-list-of-constants-to-add-in-wp-config-php\" rel=\"noopener\">List of constants to add in wp-config.php<\/a>.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>If ShortPixel Image Optimizer (SPIO) is creating WebP files with the extension .jpg.webp&nbsp;instead of .webp, this could be because:<\/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-887","docs","type-docs","status-publish","hentry","doc_category-shortpixel-image-optimizer"],"blocksy_meta":[],"year_month":"2026-05","word_count":120,"total_views":"733","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\/887","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=887"}],"version-history":[{"count":1,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/887\/revisions"}],"predecessor-version":[{"id":1456,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/887\/revisions\/1456"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=887"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=887"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=887"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}