Xfce Forum

Sub domains
 

You are not logged in.

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

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

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

Offline

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

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,124

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".

Offline

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

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

Re: Custom action help

Thanks for the help.

Offline

Board footer

Powered by FluxBB