Hi
Would it be possible to adjust the sharpening of the images?
Thank you!
X3 Photo Gallery Support Forums
// sharpen (auto)
private function sharpen($image){
$final = sqrt($this->render['dst_w'] * $this->render['dst_h']) * (750.0 / sqrt($this->render['crop_width'] * $this->render['crop_height']));
$result = max(round(52 + -0.27810650887573124 * $final + .00047337278106508946 * $final * $final), 0);
if(!imageconvolution($image, array(
array(-1, -2, -1),
array(-2, $result + 12, -2),
array(-1, -2, -1)
), $result, 0)) $this->error('Failed to sharpen image.', 500);
}
How sharp your originals are is irrelevant in this case. The point of "sharpen", is to prevent blurry resized images, and the images would become blurry regardless of how sharp your originals are. Unfortunately, default PHP image resizing causes extensive blurriness (for some reason), and we need to counter-act that with an automated sharpen feature ... The RESULT is that the resized (downsized) images resemble the originals.Dane wrote:I already sharpen my base images extensively.
I guess what you are asking, is that you want to actually INCREASE the sharpening. Keep in mind, your resized images are already compressed (JPG) and scaled down extensively, casuing some loss of detail, and then resized images will further scale in browser. If you try with vs without the "sharpen" feature, you will already see it makes a substantial difference, but it's pointless to overdo it, causing unnatural graininess.Dane wrote:But with the reduced previews, that somehow gets lost. I would have hoped that one could effectively help here.