[{"id":59,"target":"png","category":"image","options":{"resize_handling":{"type":"string","enum":["stretch","keep_aspect_ratio_fill_black","keep_aspect_ratio_fill_white","keep_aspect_ratio_fill_blurred","keep_aspect_ratio_fill_transparent","keep_aspect_ratio_crop"],"default":"stretch","description":"Determine how the resizing of the image should be done. Either by stretching, keeping the original aspect ratio (filling the empty space if needed) or not upscaling the original image."},"download_password":{"type":"string","pattern":"^[ -~]{0,1000}$","example":"secret_password","description":"A password to protect the download. To download the file send the password in the x-oc-download-password header or set a cookie named x-oc-download-password.  The value contains a comma separated list of passwords."},"allow_multiple_outputs":{"type":"boolean","default":false,"description":"If the conversion produces more than one output file, by default all of them are compressed in just one file. Set this option to true if you want a download link for each file."},"allow_multiple_outputs_threshold":{"type":"integer","minimum":2,"maximum":400,"description":"Sets the threshold for the number of output files during conversion. This option is considered only when `allow_multiple_outputs` is set to true. If the generated output files exceed this threshold, they are compressed into one file. Conversely, if the threshold is not met, each output file remains uncompressed."},"preset":{"type":"string","pattern":"^[\\w\\W]{1,255}$","description":"Predefined options"},"output_filename":{"type":"string","pattern":"^[\\w\\W]{0,255}$","example":"my_base_filename_without_extension","description":"The desired file name of the converted file WITHOUT the file extension."},"dpi":{"type":"integer","minimum":10,"maximum":1200,"description":"Horizontal and vertical density of the image (referred as DPI)"},"width":{"type":"number","minimum":1,"maximum":200000,"description":"Sets the width of the image in pixels or percentage depending on the resize_unit value"},"height":{"type":"number","minimum":1,"maximum":200000,"description":"Sets the height of the image in pixels or percentage depending on the resize_unit value"},"aspect_ratio":{"type":"string","pattern":"^\\d{1,6}:\\d{1,6}$","description":"Specify the aspect ratio of the image e.g. 16:9. If used, the options width and height are ignored."},"resize_unit":{"type":"string","enum":["px","perc"],"description":"DEPRECATED! Please use resize_by instead."},"interlace":{"type":"string","enum":["line","none","plane"],"description":"Sets the type of interlacing scheme"},"crop_top":{"type":"integer","minimum":0,"maximum":199999,"description":"Crop from the top. Use either the cropping from crop_top\/bottom\/left\/right or crop_origin_x\/y and crop_width\/height."},"crop_bottom":{"type":"integer","minimum":0,"maximum":199999,"description":"Crop from the bottom. Use either the cropping from crop_top\/bottom\/left\/right or crop_origin_x\/y and crop_width\/height."},"crop_left":{"type":"integer","minimum":0,"maximum":199999,"description":"Crop from the left side. Use either the cropping from crop_top\/bottom\/left\/right or crop_origin_x\/y and crop_width\/height."},"crop_right":{"type":"integer","minimum":0,"maximum":199999,"description":"Crop from the right side. Use either the cropping from crop_top\/bottom\/left\/right or crop_origin_x\/y and crop_width\/height."},"crop_origin_x":{"type":"integer","minimum":0,"maximum":199999,"description":"Specifies the X origin coordinate in pixels of the crop area starting from the upmost left corner of the image. Use either the cropping from crop_top\/bottom\/left\/right or crop_origin_x\/y and crop_width\/height."},"crop_origin_y":{"type":"integer","minimum":0,"maximum":199999,"description":"Specifies the Y origin coordinate in pixels of the crop area starting from the upmost left corner of the image. Use either the cropping from crop_top\/bottom\/left\/right or crop_origin_x\/y and crop_width\/height."},"crop_width":{"type":"integer","minimum":1,"maximum":200000,"description":"Specifies the width in pixels of the crop area. Use either the cropping from crop_top\/bottom\/left\/right or crop_origin_x\/y and crop_width\/height."},"crop_height":{"type":"integer","minimum":1,"maximum":200000,"description":"Specifies the height in pixels of the crop area. Use either the cropping from crop_top\/bottom\/left\/right or crop_origin_x\/y and crop_width\/height."},"color":{"type":"string","enum":["1900","1980","colored","gray","monochrome","negate","sepia"],"default":"colored","description":"Color to apply the image"},"enhance":{"type":"boolean"},"normalize":{"type":"boolean"},"sharpen":{"type":"boolean"},"antialias":{"type":"boolean"},"despeckle":{"type":"boolean"},"equalize":{"type":"boolean"},"deskew":{"type":"boolean"},"black_white_threshold":{"type":"integer","minimum":0,"maximum":255,"description":"Sets the black\/white threshold. If set to zero, a calculated average threshold is used"},"quality":{"type":"integer","minimum":0,"maximum":100,"description":"Level of quality from 0 (worst quality, smaller file size) to 100 (best quality, greater file size)"},"rotate":{"type":"integer","minimum":1,"maximum":359,"description":"Rotate image to specified degrees"},"alpha_channel":{"type":"string","pattern":"^(auto_create|(#[a-f0-9]{6}))$","description":"Make the background of an image transparent by adding an alpha channel. 'auto_create' will try to detect the background automatically. Specifying a color in the format #rrggbb will set this color to be transparent.","example":"#ffffff"},"colorspace":{"type":"string","enum":["CMYK","Gray","HSL","HSV","LAB","RGB","sRGB","YCbCr"],"description":"Sets the image's colorspace"},"compress":{"type":"string","enum":["none","low","medium","high","best"],"description":"If set, this option tries to compress your file even more with no perceivable loss of quality"},"resize_by":{"type":"string","enum":["px","perc","inches","cm","mm"],"description":"Sets the unit of measurement for the image's width and height"},"resolution_unit":{"type":"string","enum":["none","px","perc","inches","cm","mm"],"default":"none","description":"DEPRECATED! Please, use resize_by instead."},"colorize_model_name":{"type":"string","enum":["generic","nature_people"],"description":"Use Artificial Intelligence to colorize old black and white pictures with a specific training model"},"colorize_render_factor":{"type":"int","minimum":7,"maximum":40,"description":"Use Artificial Intelligence to colorize old black and white pictures with a specific render factor"}}}]