• Resolved juanwp22

    (@juanwp22)


    Hi, I would like to know if there is a possibility that after converting the images to WebP the original JPG or PNG images are automatically deleted. I need space on the server and I can’t afford to have both versions of the images.

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

    (@kubiq)

    Hi, no it’s not possible mainly because we don’t replace URL, but you probably still want to have a backdrop for Safari, as it fully supports WebP only from the last year according the caniuse.com

    Thread Starter juanwp22

    (@juanwp22)

    Thanks ??

    WolfgangHammersmith

    (@wolfganghammersmith)

    The current version does now delete but the plugin author needs to update the plugin to omit the http_accept line in the .htaccess changes.

    If the line is not omitted when you choose to delete then basic crawlers will fail the http_accept rule and try to request the original images, which were deleted, leading to errors.

    Plugin Author kubiq

    (@kubiq)

    @juanwp22 yes, now it’s possible to delete original images after conversion, as @wolfganghammersmith mentioned.

    @wolfganghammersmith you’re right, we need to customize rules in .htaccess and nginx configs, but I can not do this automatically in most cases, as most websites have .htaccess protected with low chmod and on nginx it’s impossible to change configs with PHP, so I will need to create some more test scripts and then some admin notices to tell you what needs to be done manually, but currently I’m very busy, so I’ll keep this opened in my browser and I’ll take a look on it ASAP.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Automatically delete images? (After convert)’ is closed to new replies.