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,486

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.008 seconds, 9 queries executed - Memory usage: 522.71 KiB (Peak: 523.55 KiB) ]