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

Features wanted...
Post Reply
aperk
Posts: 1
Joined: 24 Jan 2018 21:28

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

Post 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
You do not have the required permissions to view the files attached to this post.

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

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

Post 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)

Philip09621
Posts: 13
Joined: 16 May 2023 12:30

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

Post 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!

Native2904
Posts: 132
Joined: 23 Apr 2025 18:48
Location: Aachen

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

Post 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?
Lts. 64-bit XY-Port. ƒ JetBrainsMono @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
Glückauf

Post Reply