Tinify
Forum Replies Created
-
Hi Alduin,
Good to hear you were able to narrow it down further.
The compressor is initialised from the
admin_inithook: https://github.com/tinify/wordpress-plugin/blob/5b8074b9abf33232df81389859db77c4bbbf6d85/src/class-tiny-settings.php#L82Is your plugin running in the admin environment and causing this hook to fire?
Hi!
When configuring the plugin to resize the original image, it should overwrite it. Are you sure the backup is created by the TinyPNG plugin?
Perhaps WordPress is resizing the original image? If the image is large enough, WordPress will scale it down. You can disable this feature by adding this to the end of your wp-config.php file:
add_filter( 'big_image_size_threshold', '__return_false' );Please let me know if that resolve the issue!
Hi Alduin,
Thanks for your question. Currently it is not really a supported use case of the plugin, but I’ll try to help you as best as I can.
You’re correct that the plugin hooks into
wp_generate_attachment_metadata. When registering to that hook, the plugin specifies a priority (10):
https://github.com/tinify/wordpress-plugin/blob/5b8074b9abf33232df81389859db77c4bbbf6d85/src/class-tiny-plugin.php#L60This is documented here: https://developer.ww.wp.xz.cn/reference/functions/add_filter/
It could be that your other plugin(s) has the same or a higher priority (i.e. lower integer value) and executes before our plugin has registered the callback. You could check the other plugin’s priority and change it to see if this is the cause of the issue.
Kind regards,
TinifyHi there,
Thank you for your kind words!
We will add your suggestion to our list of possible improvements for the WordPress plugin.
Next to this, we, at Tinify, are continuously investigating modern formats. We completely understand why you are interested in WebP. We’re excited to tell you that we’ve recently launched the compression of WebP on our web interface.
If you have any WebP images, please feel free to give them a try.Cheers!
Forum: Plugins
In reply to: [TinyPNG - JPEG, PNG & WebP image compression] Compression too stronHi @waleedovkh,
Thanks for reaching out!
Sorry to hear that the optimized images are not looking great. Sadly, it isn’t possible to determine the level of optimization with the plugin.
However, we’d be happy to take a look at your images. Would it be possible to send us one or multiple original images where the optimized versions are not good? You can send the images to [email protected].
Looking forward to hearing from you!
Forum: Plugins
In reply to: [TinyPNG - JPEG, PNG & WebP image compression] Can’t create an account…Hi @elano,
Sorry to hear that you are experiencing issues with creating an account.
Would it be possible for you to register for an API key at https://tinypng.com/developers?
After the registration, you can grab your API key at your account dashboard and paste it into your WordPress plugin. Can you please give this a try and see if it works?If you are still running into issues, please don’t hesitate to send us a message at [email protected] accompanied with any screenshots of the issue.
Hope this helps!
Forum: Reviews
In reply to: [TinyPNG - JPEG, PNG & WebP image compression] GreatHi there!
Thank you for your kind words. Please feel free to drop us a line, in case you have any questions or feedback.
Have a great day!
Forum: Plugins
In reply to: [TinyPNG - JPEG, PNG & WebP image compression] Add uncompress optionHi there,
Thank you for the suggestion. I can definitely see how this feature could be beneficial, but unfortunately, it’s currently not possible to undo compressions. The reason is that when you optimize an image with Tinify’s plugin, the original images will be replaced with the optimized version.
If you do not want the plugin to automatically optimize uploaded images, then you go to Settings>Compress JPEG&PNG images, and select “Do Not compress new images automatically” and click on “save”. This way you can manually select the images that still need to be optimized. Here is an article on how to do so:
https://help.tinify.com/help/how-to-compress-existing-images-with-pluginHope this helps!
Forum: Plugins
In reply to: [TinyPNG - JPEG, PNG & WebP image compression] reset compressed photo counterThe plugin will detect images that have been overwritten and need to be re-compressed.
You can check this in the List view of the Media Library. When you click on the ‘details’ link in the Compression column, these sizes will be shown as ‘modified after compression’.
To optimise these images, simply click the Compress button, or use the Bulk Optimization Tool.
Forum: Plugins
In reply to: [TinyPNG - JPEG, PNG & WebP image compression] reset compressed photo counterHi there,
Thanks for reaching out!
The plugin will only compress images that have not been compressed with the plugin before. Once images are compressed, you do not have to compress the images again.
If you want to optimize images that are not compressed before, you can use the Bulk Optimization tool. In your WordPress dashboard, hover over Media and select Bulk Optimization. This will take you to a screen where you can compress all the existing images in your media library.
If this does not answer your question, can you please send us an email at [email protected] letting us know what your Tinify account is and screenshots of your issue?
Hope this helps!
Forum: Reviews
In reply to: [TinyPNG - JPEG, PNG & WebP image compression] AwesomeHi there,
Thank you for your kind words!
Please feel free to drop us a line, in case you have any questions or suggestions.Have a great day!
Hi there,
I had a look at your website and indeed I see that the image width and height are set to 1px. That said it is very unlikely to be an issue related to the TinyPNG plugin as the plugin does not set image widths/heights in the HTML.
Additionally I see that the problematic images are not compressed. Do you perhaps have other plugins installed that manipulate images?
If so could you please try to disable any other plugins, run the compression again and see if that fixes your issue?
As a side note I would suggest uploading smaller images as some of your images are very large in size – 4480px X 6720px (e.g. https://dreamwithharsha.com/wp-content/uploads/2021/05/productivitythingsfeatured.jpg)
If you have any further question please send us an email to [email protected] and a developer will assist you further.
Forum: Plugins
In reply to: [TinyPNG - JPEG, PNG & WebP image compression] WoocommerceHi there,
We haven’t had any reports about this issue recently. If you do run into any issues with WooCommerce, feel free to reach out to us! We’d be happy to help.
Have a great day!
Hi there,
Thanks for reaching out. We’d be happy to answer your question.
The plugin does not create any additional image sizes. When you upload an image to WordPress, it will automatically generate thumbnails from the original image that are required. It’s likely that the image dimension 1536×1536 was needed for the WordPress theme.
The plugin will only compress the original image and its existing image sizes in our Media Library. If you wish to manage which image sizes get generated and compressed by the plugin, in your WordPress dashboard go to Settings > Compress JPEG & PNG images and uncheck any image sizes you do not wish to use.
Hope to have answered your question!
Forum: Plugins
In reply to: [TinyPNG - JPEG, PNG & WebP image compression] Remove transparencyHi Yannis,
Thanks for your message!
Unfortunately, it’s not possible to remove the transparency of your images with the plugin. The plugin can only assist with compressing and resizing the images.
It currently does not offer the feature of converting images to a different format. We’ve added this suggestion to our list of possible improvements.
Sorry, we couldn’t be of more help!