Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-07-30 15:05:36

fixit
Member
Registered: 2015-01-19
Posts: 129

Custom action help

I am trying to make a custom action to reduce the size of jpg files.

This is not working.

convert -resize 800X450 %f.jpg %f.jpeg


Ubuntu-Mate 24.04

Offline

#2 2020-07-30 17:10:10

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Custom action help

%f refers to the full filename (e.g. myfile.jpg). By appending ".jpg" to the filename input parameter, you are telling convert that the filename is "myfile.jpg.jpg" and that file doesn't exist. What you want to run is:

convert -resize 800X450 %f %f.jpeg

Note: that the resulting output file name will be "mytest.jpg.jpeg".


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2020-07-30 17:29:07

fixit
Member
Registered: 2015-01-19
Posts: 129

Re: Custom action help

Thanks for the help.


Ubuntu-Mate 24.04

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 522.84 KiB (Peak: 531.12 KiB) ]