Search…

X3 Photo Gallery Support Forums

Search…
 
pixelmaniac.fr
Topic Author
Posts: 7
Joined: 24 Jul 2017, 18:07

Modify the render quality ?

25 Jul 2017, 04:04

I can't find how to change the default quality value for the render "q90" to "q100" ?
ex : http://domain.com/render/w800-q90/image.JPG 
to: http://domain.com/render/w800-q100/image.JPG
help me :) 
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Modify the render quality ?

25 Jul 2017, 08:36

There are not settings for this, but if you really need to, you can open file /app/parsers/slir/slir.class.php, line 847:
Code
$this->rendered->quality = ($this->request->quality !== NULL)
 ? $this->request->quality : SLIRConfig::$defaultQuality;
Comment out the code above, and instead set the following:
Code
$this->rendered->quality = 100;
 /*$this->rendered->quality = ($this->request->quality !== NULL)
? $this->request->quality : SLIRConfig::$defaultQuality;*/
I don't recommend the above for several reasons:
  • Have you compared the image quality? File size may TRIPLE (yes that's right 3x file-size), without any visible difference in image quality.
  • On new RETINA screen devices (screens with double pixel density), the value should be lower if anything. Images are already served at double size because screens use "pixel-doubling", but this also makes compression less visible.
It is not a good idea, but up to you ...  :wink:
 
pixelmaniac.fr
Topic Author
Posts: 7
Joined: 24 Jul 2017, 18:07

Re: Modify the render quality ?

25 Jul 2017, 10:35

Ok thank you for that ! now i have to choose :)