Simplify the process of compressing images with TinyPNG directly from Nautilus file manager. This Nautilus Script automates the task of uploading, compressing, and downloading images, saving time and effort for users.
clip.mp4
Select Images from your Nautilus File Explorer, Right click > Scripts > tinyPNG\
Run this Command on your Terminal
git clone [email protected]:saadh393/TinyPNG-x-Nautilus.git "${XDG_CONFIG_HOME:-$HOME}"/tinypng && cd $HOME/tinypng && mv $HOME/tinypng/tinypng.sh $HOME/.local/share/nautilus/scripts/TinyPNG.sh && chmod +x $HOME/.local/share/nautilus/scripts/TinyPNG.sh && rm -rf $HOME/tinypng
- Clone this Repo
git clone [email protected]:saadh393/TinyPNG-x-Nautilus.git
- Change the file permission
cd TinyPNG-x-Nautilus
chmod -x tinypng.sh
- Move the
tinypng.sh
file into this file/home/{USER_USER_NAME}/.local/share/nautilus/scripts
or run script
mv tinypng.sh $HOME/.local/share/nautilus/scripts
- Done, Now You can Perform the script from your Nautilus. Make Sure you have get your API
To obtain the API key:
- Visit the TinyPNG developers website at tinypng.com/developers.
- Enter your name and email address to request access to the API.
- Check your email for a confirmation message from TinyPNG.
- Once confirmed, log in to the TinyPNG dashboard using your credentials.
- After logging in, wait a few minutes for your API key to be generated.
- You will receive your API key, which you can then use to authenticate your requests.
If you encounter the error message curl: (3) URL using bad/illegal format or missing URL
, follow these steps to resolve the issue:
- Delete the
.tinypng.apikey
file located in your$HOME
directory. - Run the script again.
This issue typically occurs when:
- You have provided an incorrect API key.
- Your API key has expired.
- You have exceeded the daily usage limit for the TinyPNG API.
By deleting the .tinypng.apikey
file and retrying the script, you can resolve this issue and ensure proper functionality.
We welcome contributions to enhance this project. If you encounter any issues or have suggestions for improvements, please feel free to create an issue on GitHub. Additionally, if you'd like to contribute directly to the codebase, you can submit a pull request with your proposed changes. We appreciate your contributions to making this project even better!
In this rewritten Markdown:
- Section titles are prefixed with relevant emojis for better visual representation.
- Instructions are structured and formatted for clarity and readability.
- Links are properly formatted and presented.
- The content is organized and presented in a professional manner.