Cover cropper - Creating Kodi style poster files from covers

SamKook

Grand Wizard
Staff member
Super Moderator
Uploader
May 10, 2009
3,715
5,107
If it can be done with mp4 then mp4box will be able to do it and it's command line so you can do it in batch.
 

Fetterbr

Member
Dec 10, 2010
92
5
sorry that is to complex for me, i know where the cover pictures are and where the movie folders are, than i need automatics for the rest :)
 

SamKook

Grand Wizard
Staff member
Super Moderator
Uploader
May 10, 2009
3,715
5,107
Not really possible with the current version, you'd have to modify the source picture first to get the desired output size(or modify the output in the code, which isn't up-to-date atm since I was waiting to make a few changes first, to force a certain size), but that would be a good thing to add.
 

Fetterbr

Member
Dec 10, 2010
92
5
thanks for all your work on this little but very good program, i use it dayli to bring my movies up todate. One thing more you realy need to add is that i can drag files to the program and not only have one specific folder to add. :)
In mp3tag fxample here you need to drag all files at ones as every thing will dissapere when you forgot one file and do again.
 

Fetterbr

Member
Dec 10, 2010
92
5
question. Sorting with Win 10 explorer. I have lots of Folders with movie file, subtitle file, picture file.
I want to see All my Folders with content, expanded and grouped by folder path. Sorted by the date i have created the movie file. i simply cant get it to work.
 

SamKook

Grand Wizard
Staff member
Super Moderator
Uploader
May 10, 2009
3,715
5,107
Sounds like you want to sort with 2 columns(path and date), which isn't possible in windows explorer as far as I know.
 

SamKook

Grand Wizard
Staff member
Super Moderator
Uploader
May 10, 2009
3,715
5,107
I'm hoping there will be. Finding a balance between things is hard and I haven't been coding at all for a few months now because I've been too absorbed by other things.

Hopefully I manage to get started again today(said to myself I would yesterday but here we are the next day and I haven't started yet) since there's a few bugs annoying me in my own script and I do need to make a modification to the cover cropping script before I continue on that other one.
 

Fetterbr

Member
Dec 10, 2010
92
5
maybe you can find the issue that it stops. it seams its to do when the indexing from windows is running but i cant tell. also would be very very nice if i could drag the picture in and make them one by one where they are missing instead of specifying the whole folder
 

SamKook

Grand Wizard
Staff member
Super Moderator
Uploader
May 10, 2009
3,715
5,107
The main thing I need to add is support for opening a cover file directly so if the GUI library I'm using can understand drag and drops, it should be trivial to add after.

That bug will be a lot trickier without knowing what the issue really is but I'm hoping beefing up the checks on stuff will possibly help.

I'll also look back at the other stuff you said in here.


Edit: Drag and drop support will be in the next release, I've added it today.
 
Last edited:

SamKook

Grand Wizard
Staff member
Super Moderator
Uploader
May 10, 2009
3,715
5,107
I'm currently working on implementing a verification system and this is what I'm currently thinking.
I'll add a 4th crop method called verify posters or something like that which will check if a poster file exist, check if the dimension matches(with an option to add a margin of error) the expected ones from the software cropping and it'll take into account the crop threshold too as a sanity check for when it crops too much, which means it has a high chance of being wrong. It will then only display those that break those checks which means there's a good chance of something being wrong with either the existing poster or the software crop.

It will also now always load the poster file(which means it's possible to check them all one by one even outside of the verification mode) if it exist so it can be compared with what the cropping software does with the current settings which looks something like this right now:
Crop_verif_prototype.jpg

If there's any ideas or concerns about the way I'm thinking of doing this, let me know.
I've debated doing a more manual verification on more than one poster at a time but decided against it since ideally you need the original cover to compare since some are less obviously wrong than others and they'd need to be fairly small to find a decent amount on a monitor.


I've also improved the edge detection a bit by setting a minimum % of the width of the image allowed(only for the automated detection, manually changing the size has no limitation) for the poster, which eliminates the single digit pixel wide posters. It tried to detect only on the right side of the image if that happens, which helps detect better. The cover in the example above had a 1x1 pixel poster made before.
 
Last edited:

SamKook

Grand Wizard
Staff member
Super Moderator
Uploader
May 10, 2009
3,715
5,107
Current plan is fix the zoom that adding the preview broke(current version is completely broken if the zoom activates with the preview on in most scenario, it infinitely adjust itself and stops responding. About to work on that now), add the verification mode, add setting a minimum and maximum height resolution for the poster(can be disabled, not sure yet how that'll work exactly) and then add some new settings to the interface related to all that before next release.