Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

Image Generation Quality (media_processing.conf configuration explination)

HI All,

I'm using Providence 1.7.8

So, I've gotten a lot of questions from other team members involved with a CollectiveAccess project I'm currently working on around adjusting the image quality especially for the generated images. Having done a little research on it I found that there is this media_processing.conf configuration file that provides configurations that seems to configure the "media transformation” I assume these are values feed into GraphicsMagick, ImageMagick or one of the other graphics extensions/libraries that CollectiveAccess uses to do the media conversion but I don’t have enough background in this area to understand exactly what these values are measured in and how to appropriately adjust them. In particular in the quote given below it says "quality = 75" but I don't really understand 75 of what? Any insight or direction others can provide is much appreciated.

MEDIA_TRANSFORMATION_RULES = {
# ---------------------------------------------------------
# Image rules
# ---------------------------------------------------------
rule_icon_image = {
SCALE = {
width = 72, height = 72, mode = fill_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_iconlarge_image = {
SCALE = {
width = 250, height = 250, mode = fill_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_tiny_image = {
SCALE = {
width = 72, height = 72, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_thumbnail_image = {
SCALE = {
width = 120, height = 120, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_widethumbnail_image = {
SCALE = {
width = 110, height = 75, mode = fill_box, crop_from = center, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_preview170_image = {
SCALE = {
width = 170, height = 170, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_widepreview_image = {
SCALE = {
width = 200, height = 120, mode = fill_box, crop_from = center, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_preview_image = {
SCALE = {
width = 180, height = 180, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_small_image = {
SCALE = {
width = 240, height = 240, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_medium_image = {
SCALE = {
width = 400, height = 400, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_mediumlarge_image = {
SCALE = {
width = 580, height = 450, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_large_image = {
SCALE = {
width = 700, mode = width, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_page_image = {
SCALE = {
width = 1000, mode = width, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_to_ctm = {
SET = {format = application/ctm}
},
rule_to_stl = {
SET = {format = application/stl}
},
rule_to_pdf = {
SET = {format = application/pdf}
},
rule_original_image = {},
rule_tilepic_image = {
SET = {quality = 40, tile_mimetype = image/jpeg, format = image/tilepic}
},
# ---------------------------------------------------------
# Image rules (DPX format only)
# ---------------------------------------------------------
rule_icon_dpx_image = {
SCALE = {
width = 72, height = 72, mode = fill_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
},
rule_iconlarge_dpx_image = {
SCALE = {
width = 250, height = 250, mode = fill_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
},
rule_tiny_dpx_image = {
SCALE = {
width = 72, height = 72, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
},
rule_thumbnail_dpx_image = {
SCALE = {
width = 120, height = 120, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
},
rule_widethumbnail_dpx_image = {
SCALE = {
width = 110, height = 75, mode = fill_box, crop_from = center, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
},
rule_preview170_dpx_image = {
SCALE = {
width = 170, height = 170, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
},
rule_widepreview_dpx_image = {
SCALE = {
width = 200, height = 120, mode = fill_box, crop_from = center, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg}
},
rule_preview_dpx_image = {
SCALE = {
width = 180, height = 180, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
},
rule_small_dpx_image = {
SCALE = {
width = 240, height = 240, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
},
rule_medium_dpx_image = {
SCALE = {
width = 400, height = 400, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
},
rule_mediumlarge_dpx_image = {
SCALE = {
width = 580, height = 450, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
},
rule_large_dpx_image = {
SCALE = {
width = 700, height = 600, mode = bounding_box, antialiasing = 0.5
},
SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
},
rule_tilepic_dpx_image = {
SET = {quality = 40, tile_mimetype = image/jpeg, format = image/tilepic, gamma = 1.7, reference-black = 6080, reference-white = 43840}
},
# ---------------------------------------------------------
# Video rules
# ---------------------------------------------------------
rule_video = {},
#
#
#
rule_video_to_h264_hi = {
SET = {
format = video/mpeg,
command = "-s 1280x720 -y -c:a aac -ab 96k -ac 1 -ar 44100 -c:v libx264 -crf 23 -threads 2 -async 1 -strict -2 -pix_fmt yuv420p"
}
},
# Rule used to encode video as Ogg Theora; you'll have to actually add versions using this rule to get Ogg files actually encoded
rule_video_to_ogg_theora = {
SET = {
format = video/ogg,
command = " -acodec libvorbis -vcodec libtheora -ab 128k -ar 44100"
}
},
}
"

Thanks in advance!

Sign In or Register to comment.