I sometimes crop my RAW files, Can I do while retaining the filenames?

I sometimes shoot with a full frame camera that I don’t fully illuminate so I crop about 15% of the width and that works great.

I do this by loading up the files into a sequence and using:

seqcrop sequencename x y width height [-prefix=] (x y is the upper left starting corner)

It works great, but the issue is it uses a new filename (cropped__number) and in my old files I have some nice information like FWHM, number of stars, exposure time, etc… This makes if very convenient for me to do some searching and sorting based on file information.

Is there a way to have SIRIL crop a directory of files and either not change the name, or just prepend it with “cropped_” or something?

Hi Steven,

it is not possible within Siril, because of the way the files are recognized as sequences, to then apply sequence operation (like seqcrop or else). They need to share a basename (Sequences — Siril 1.2.0 documentation)

Still, upon conversion to a sequence, siril saves a basename_conversion.txt file listing the old name/new name conversion. So with a bit of scripting (bash, posh, python…), you can probably get what you want. Remember that if you then want to use these cropped files as a sequence to be registered for instance, they will still need to follow the basename$i.fit rule

Thanks for the quick response. I’m no scripting expert, but this is the third time I would benefit from basic shell level scripting… plus the ability to script SIRIL. It looks like a longer term project for me is to become a bit of a scripting expert… AP is a deep deep hobby! lol…

Would you recommend a scripting tool over all others for someone that hasn’t done it before (but used to program in C and used UNIX long ago. I only did a bit of Python)?

The last two tutorials at this page: Siril - Tutorials
Will show you how to script with shell type scripts and with python. I would then say, whatever works for you. My personal preference is with python but it’s really just an opinion…

Cheers,

Cecile

Ps: there are also some sample scripts in the comet tutorial

1 Like