# Advanced Image Processing Settings
#    @auto_split_landscape_scans     If enabled then MangAI will attempt to automatically split landscape scans that contain two pages into separate portrait images.
#                                    MangAI will try to only split two-page landscape scans where the two pages don't form one giant image.
#                                    Acceptable values: true, false
#    @auto_split_r_first             If you enabled @auto_split_landscape_scans, then this value determines if the right side of the image should come before the left side.
#                                    Acceptable values: true, false
#                                    Recommended: true for manga and other right-to-left books, or false otherwise
#    @auto_split_keep_unsplit_scans  If you enabled @auto_split_landscape_scans, then this value determines if MangAI should include the full landscape scan even when it is split.
#                                    This is useful if you want to be able to see the two-page view to get a sense of the full image and still get the benefit of reading individual split pages.
#                                    If enabled, the page ordering of landscape split scans will be: unsplit landscape scan, first split page, second split page
#                                    Acceptable values: true, false 
#    @allow_auto_split_color_scans   If you enabled @auto_split_landscape_scans, then this value will determine whether MangAI will allow or ignore splitting color scans (and so potentially only split grayscale scans)
#                                    This is useful since two-page landscape color scans in manga usually form one big image, but MangAI may detect the page split between the two pages and split them anyway.
#                                    Acceptable values: true, false
#    @auto_split_gray_strictness     This value affects how strict the two-page detection algorithm is when detecting a page split within a grayscale scan.
#                                    The higher the value, the more obvious the page split must be for MangAI to find it. If set to 1.0 then only grayscale landscape scans with the most obvious page splits will be detected.
#                                    Similarly, a low value means that the page split doesn't have to be well pronounced for MangAI to find it. If set to 0 then all grayscale landscape scans will be split.
#                                    In other words, the more strict you are, the less likely you are to split a scan.
#                                    Acceptable values: A decimal between 0 and 1.0, inclusive.
#                                    Recommend: .8 (for normal strictness), .9 (for high strictness), .7 (for low strictness)
#    @auto_split_color_strictness    This value affects how strict the two page detection algorithm is when detecting a page split within a color scan.
#                                    The higher the value, the more obvious the page split must be for MangAI to find it. If set to 1.0 then only color landscape scans with the most obvious page splits will be detected.
#                                    Similarly, a low value means that the page split doesn't have to be well pronounced for MangAI to find it. If set to 0 then all color landscape scans will be split.
#                                    Acceptable values: A decimal between 0 and 1.0, inclusive.
#                                    Recommend: .9 (for normal strictness), 1.0 (for high strictness), .8 (for low strictness)
#    @auto_split_buffer              This value determines the % of the other side of a split page that should be included after the split.
#                                    For example, if the value is set to 0.2 then 20% of the other split page will be included in the current split page.
#                                    Acceptable values: A decimal between 0 and 1.0, inclusive (0 will disable the buffer, 1.0 will include the complete other page)
#    @auto_split_page_side_border    If you enabled @auto_split_landscape_scans and @add_border, this determines if split scans should have borders added to the left/right side to best represent the original physical page side.
#                                    As a more visual example, enabling this feature will result in [border][left page] for the left page of a split and [right page][border] for the right page of a split.
#                                    Acceptable values: true, false
#                                    Recommended value: true only if you set @auto_split_gray_strictness and @auto_split_color_strictness to 0 (i.e. you are splitting all landscape scans regardless of page split detection), false otherwise
#                                    I also recommed using a small @auto_split_buffer (like a value between 0.05 and 0.1) when using this feature.
#    @auto_sense_landscape_folders   If you enabled @auto_split_landscape_scans, MangAI will only attempt to split landscape scans within folders that contain mostly landscape scans.
#                                    is is useful because usually you either have a folder with only a few landscape scans (which are not meant to be split) or you have a folder with mostly landscape scans (which should be analyzed for splits).
#                                    Acceptable values: true, false
#                                    Recommended value: true
#    @chop_white_rows       Chops horizontal white bars within a scan (i.e. finds white rows, removes them, shifts sections of image to cover the empty space).
#                           Uses @trim_cancel to prevent too much chopping.
#                           Acceptable values: true, false
#                           Recommended: true (if using 6" or smaller ereader), false (if using large screen ereader, no need to waste time on this)
#    @chop_white_columns    Chops vertical white bars within a scan (i.e. finds white columns, removes them, shifts sections of image to cover the empty space).
#                           This is especially useful if you are processing classic 4 or 6 panel manga as most manga will not contain white columns (other than the borders which are handled by @auto_trim).
#                           Uses @trim_cancel to prevent too much chopping.
#                           Acceptable values: true, false
#                           Recommended: true (if using 6" or smaller ereader), false (if using large screen ereader, no need to waste time on this)
#    @chop_fuzz             If @chop_white_rows or @chop_white_columns is enabled, this is the fuzz value to use when chopping.
#                           Acceptable values: an integer between 0 and 100, inclusive
#                           Recommended: 25 (or 15 if you want to play it safe)
#    @jpeg_quality          Integer value between 1 and 100, inclusive, of percentage quality of output jpeg images.
#                           100 is highest quality, while 1 is lowest quality. Lower quality should reduce file size but may also decrease readability (lossy compression).
#                           Set to -1 for default quality which is determined per image based on a quick analysis. Average default quality is around 92.
#                           Acceptable values: -1 (for default quality), an integer between 1 and 100 inclusive
#    @pdf_input_density     Integer value representing the dots per inch (DPI) of input pdf files.
#                           High density value produces high resolutions when the pages of input pdf files are converted to images for further processing.
#                           High density value, however, greatly increases processing time. Compared to density 72, density 150 takes about 3x longer to process, and 300 takes well over 10x longer!
#                           If text comes out fuzzy, change to a different density and try again.
#                           Acceptable values: 72, 96, 150, 300, 600, 1200
#                           Recommended: 150
#    @sharpen               Sharpening can help increase readability of blurry text.
#                           Integer value between 1 and 100, inclusive, of percentage to sharpen images.
#                           100 is the most sharpening, while 1 is lowest sharpening.
#                           Acceptable values: -1 (to disable), an integer between 1 and 100 to sharpen
#    @adjust_contrast       Adjusts the contrast level of the output images.
#                           The value represents how many times the contrast adjustment alogrithm should be run on an image (for example, a value of 3 would result in the contrast algorithm being run three times).
#                           A negative value will increase contrast, a positive value will decrease contrast, and a value of 0 leaves the contrast unmodified.
#                           Acceptable values: 0 (to disable), an integer between -5 and -1 inclusive (to increase contrast), or an integer between 1 and 5 inclusive (to decrease contrast)
#                           Recommended value: If you're going to adjust contrast, you likely want to increase. -1 or -2 should be good.
#    @auto_level            Determines whether to use the ImageMagick -auto-level feature.
#                           Description from the ImageMagick website: "It finds the exact minimum and maximum color values in the image and then applies a -level operator to stretch the values to the full range of values."
#                           Acceptable values: true, false
#    @imagemagick_ops       Warning: FOR ADVANCED USERS ONLY! This can freeze, crash, or ruin the output if used incorrectly.
#                           Additional operations for ImageMagick to perform on each image.
#                           This allows the user to use ImageMagick convert options not already utilized by MangAI.
#                           Only use image altering ops. Don't use anything that causes creation of another file.
#                           See http://www.imagemagick.org/script/convert.php for list of options.
#                           Example: -despeckle -level 0%,100%,1.2