Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

setHeight / set Width / JPG QUALITY 66?


Reply


2 Posts   1589 Views

Avatar
borriej

Community Member, 267 Posts

9 April 2010 at 9:50pm

Hi,

How can you increase the jpg quality of the setHeight function?

When you upload an image (instance: $Picture) with jpg quality 100..

And do this: $Picture.setHeight(230)

the result gives a resized image (nice) but the quality is 66 and not 100.

How can I adjust this?

Avatar
lerni

Community Member, 80 Posts

10 April 2010 at 12:22am

hi

afaik you cant set it for the template unles you set it for the whole system per _conifg.php with

GD::set_default_quality(95);

otherwise resize the pics per php and set it in the function

$gd->setQuality(98);