Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format in output template #7292

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

digitalteg
Copy link

I added in a "%e" format specifier for the batch queue output location template.

I also updated the help panel for the batch queue output location to document the added specifier.

Now, for example, an output location of "%p1/converted_%e/%f" will include the file extension (output format) in the folder path for the output image. So, the folder path will contain "converted_jpg" or "converted_png", etc., depending on the output file extension.

Resolves #7196

New option adds a specifier for the output file format.
The "%e" specifier is replaced with the output file format.
For example, "converted_%e" will be replaced with "converted_jpg" if the output format is jpg.

An argument was added to the calcAutoFilenameBase function to allow the format to be passed in.

Changes to be committed:
	modified:   rtgui/batchqueue.cc
	modified:   rtgui/batchqueue.h
support of the addition of a formatting specifier for the output file format

Changes to be committed:
	modified:   rtgui/batchqueue.cc
Added in an example and a description of the "%e" format specifier which puts the file name extension in the output path

Changes to be committed:
	modified:   rtdata/languages/default
	modified:   rtgui/batchqueuepanel.cc
@Lawrence37 Lawrence37 added the type: enhancement Something could be better than it currently is label Jan 19, 2025
@Lawrence37 Lawrence37 added this to the v6.0 milestone Jan 19, 2025
@Lawrence37
Copy link
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Something could be better than it currently is
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add file format specifier to batch queue output location template
2 participants