Page 1 of 1

right click context menu option for png/jpg/gif to compress

Posted: 24 Jan 2018 23:24
by aperk
FIRST POST :) love the program everyone, windows explorer sucks major bags of dicks

Wish: a right click context menu option for png/jpg/gif to compress (losslessly primarily)

Would also be cool if there was a lossful compression option with a slider and side by side preview of the image (ala photoshop), but that seems like more work.

I have this functionality in VS Code using a plugin: https://github.com/andi1984/vscode-tinypng
basically like this: https://i.imgur.com/OcTYIuG.png
github repo for the VSCode plugin: https://tinypng.com/developers/referenc ... ing-images


It requires an account with tinypng and limit to 500 compressions/month with charges after (must add credit card, unfortunately, but I don't anticipate going over 500/month & tinypng allows to send an email alert once you hit N compressions -- set mine to 400).

Searching the XYplorer forums for "image compression" and "tinypng" found few results for what I'm after, except maybe @prino has some ideas in this post: viewtopic.php?f=2&t=8908&p=79322&hilit= ... ion#p79322

Re: right click context menu option for png/jpg/gif to compress

Posted: 25 Jan 2018 01:39
by jupe
Welcome to the forum,

Since you are new do you realize that you can already quite easily integrate command line versions of programs that specialize in image compression, like tinypng-cli, optipng, pngcrush or jpegtran etc and then add them to XY for seamless integration in the menus etc.

Just a few CLI options:
https://github.com/websperts/tinypng-cli
https://pmt.sourceforge.io/pngcrush/
http://www.advsys.net/ken/util/pngout.htm
http://optipng.sourceforge.net/
https://pngquant.org/
http://www.advancemame.it/doc-advpng.html
jpegtran binaries

Also for A GUI solution something like RIOT could be integrated too which has side by side preview & a quality slider like you want, it looks like this:

Image

If you download RIOT be sure to download the portable version because I have heard about bundled apps with the installer version. (unconfirmed though, may just have been a older version)

Re: right click context menu option for png/jpg/gif to compress

Posted: 19 Apr 2026 10:27
by Philip09621
Hey! I’ve had similar issues with XYplorer thumbnails not updating or appearing broken for certain images. Sometimes it’s down to how the file was originally encoded or a weird transparency layer that the previewer doesn’t like. Usually, I just try converting the file to a standard JPEG using a quick tool like https://www.thetoolapp.com/png-to-jpeg/ to see if a 'clean' version of the file shows up correctly. If the new version works, then it's definitely a metadata issue rather than an XYplorer setting!

Re: right click context menu option for png/jpg/gif to compress

Posted: 20 Apr 2026 08:42
by Native2904
Clear, a thousand ways lead to Rome — but the idea of leaving the stage in the middle of a performance just to upload a file to the internet wouldn’t even cross my mind, especially since almost every common image viewer supports conversion via the command line.
Isn’t it nice when everything can be done within a small area, for example by using the linking options in XYplorer?