cosmic-files
cosmic-files copied to clipboard
[Feature Request] Context Menu File Conversion and Resizing in Cosmic files
It would be great to have the ability to right-click on common file types and convert them to similar formats. While I currently use scripts in GNOME and actions in Cinnamon, such features are not available in Cosmic. For example, it would be useful to convert a PDF to a PNG or JPEG or to convert image files like JPEG to PNG directly from the context menu.
Additionally, having options for basic image resizing would be very useful. Expanding this functionality to include audio format conversions, such as WAV to MP3, would also be beneficial. I understand that video conversion might not be feasible, but even basic support for images and audio would be a valuable addition.
This could be fixed by allowing scripts for cosmic files. Or extensions for cosmic files.
I am not sure how to make these scripts work in cosmic files.
Convert PDF to JPEG
#!/bin/bash for file in "$@"; do base_name="${file%.pdf}" pdftoppm -jpeg -jpegopt quality=100 "$file" "${base_name}" done
Convert DOCX to jpeg
#!/bin/bash for file in "$@"; do base_name="${file%.docx}" libreoffice --headless --convert-to pdf "$file" pdftoppm -jpeg -jpegopt quality=100 "${base_name}.pdf" "${base_name}" rm "${base_name}.pdf" done
Something like this from Linux Mint - Convert Image Format
The image seems to have been removed
The image seems to have been removed
I don't have an image attached.
I would like the option for cosmic-files to be able to convert PDF files into image files (PNG or JPEG), the ability to use scripts, or plugins.
+1.
Gnome Files allows adding scripts by simply placing them in a /scripts folder.
It's a great way to supercharge the app.
This collection of scripts supports Nautilus, Dolphin, Caja, Nemo, Thunar and PCManFM-Qt, Cosmic Files should them.
https://github.com/cfgnunes/nautilus-scripts