cosmic-files icon indicating copy to clipboard operation
cosmic-files copied to clipboard

[Feature Request] Context Menu File Conversion and Resizing in Cosmic files

Open chris122380 opened this issue 11 months ago • 5 comments

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.

chris122380 avatar Dec 24 '24 15:12 chris122380

This could be fixed by allowing scripts for cosmic files. Or extensions for cosmic files.

chris122380 avatar Jan 08 '25 18:01 chris122380

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

chris122380 avatar Jan 24 '25 16:01 chris122380

The image seems to have been removed

iamkartiknayak avatar Mar 10 '25 08:03 iamkartiknayak

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.

chris122380 avatar Mar 10 '25 12:03 chris122380

+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

BarryBanana avatar Oct 20 '25 15:10 BarryBanana