Xfce Forum

Sub domains
 

You are not logged in.

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

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

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 22.04

Offline

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

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

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: 115

Re: Custom action help

Thanks for the help.


Ubuntu-Mate 22.04

Offline

Board footer

Powered by FluxBB