The problem is: When I have Resize larger images checked in the settings, and then also have the Disable Big Image code installed (see below), Imagify creates 2 images: an Original image file unchanged + Scaled image file that is sized as the Resize larger images max pixel size settings.
The way this should be working is: No scaled image is created and the Original image is set as the Resize larger images max pixel size settings.
Rather than the scaled image not being created and my original image being resized: The scaled image is being created using the Resize lager image max pixel settings, and the original image is being left alone. It looks like the process is REVERSED. Scaled should not be created. Original should be resized.
add_filter( 'big_image_size_threshold', '__return_false' );
This is no longer working. I have tested it on a few sites. I can confirm this filter code works without Imagify and works properly with other compression plugins like Shortpixel.
]]>add_filter( 'webpc_htaccess_mod_rewrite', function ( $rules ) {
return preg_replace(
'/(RewriteCond %{HTTP_ACCEPT} image\/(?:[a-z]+))/',
'$1' . PHP_EOL . ' RewriteCond %{QUERY_STRING} !(^|&)' . 'nocache' . ' [NC]',
$rules
);
} );
I’m using the above snippet to download original files from media using suffix ?nocache
.
On nginx server it doesn’t work. Is there any alternative method?
]]><!– wp:paragraph –>
<p class=””></p>
<!– /wp:paragraph –>
after making some adjustments i have lost contact to the original template. i did download again original .zip files, uploaded theme, it rewrote the existing one but i don’t see original template starter pages and it doesn’t change back fonts on the pages i have created.
www.nkt.ee
could you pls see the issue? i use Elementor pro for editing, it does show WP options as well.
thank you in advance,
Tuuli
Can you please clarify?
In the tags it says “Tags: AVIF / webp ” but in the description & in the images have nothing about AVIF, so dose it have AVIF support or not?
And can it automatically switch back the webp or original if AVIF or webp is not supported by the browser?
Thank you!
]]>Currently, in my galleries I usually upload my images in 1920x1440px, but in the Global Settings I set a maximum size of 1200×1200 (“Image dimensions – Specify the maximum dimensions of uploaded images (set 0 for original size).
I checked in my ftp server, the plugin saves in each gallery folder the original pictures in an “.original” folder.
Is there any way other than manually replacing the resized images with the images saved in the “.original” folders?
I know that changing the setting “Image dimensions – Specify the maximum dimensions of uploaded images (set 0 for original size)” is not retroactive.
Thank you in advance for your help.
Best regards,
Kévin CAROL
]]>That to the old URL is posted the actual underlying issue – the <form
action
URL still points to the old URL from which the Redirection plugin already redirected away to the new URL.
So why does the WooCommerce add to cart form still use the old URL in action
?
Edit: Things become more clear now – the template for the add to cart form uses the permalink of the product (post):
<form class="cart" action="<?php echo esc_url( apply_filters( 'woocommerce_add_to_cart_form_action', $product->get_permalink() ) ); ?>" method="post" enctype='multipart/form-data'>
But the Redirection plugin doesn’t filter the product permalinks.
IMHO the best solution would be if the Redirection plugin could allow processing of those POST requests and then do nothing as these specific POST requests are invoked by ajax and not visible to the user.
There is no filter for is_protected_url
yet, so I can’t just add a hook to prevent redirection of WooCommerce POST requests.