2015-03-16 21:18:03 +00:00
|
|
|
---
|
|
|
|
title: Improve JPG Quality in Imagecache and ImageAPI
|
2020-03-08 14:32:13 +00:00
|
|
|
date: 2010-06-02
|
2018-12-31 12:13:05 +00:00
|
|
|
excerpt: How to fix the quality of uploaded images in Drupal.
|
2015-03-16 21:18:03 +00:00
|
|
|
tags:
|
2015-06-14 02:27:41 +00:00
|
|
|
- drupal-planet
|
|
|
|
- drupal-6
|
|
|
|
- imagecache
|
2015-03-16 21:18:03 +00:00
|
|
|
---
|
|
|
|
|
2020-03-08 17:52:59 +00:00
|
|
|
Whilst uploading images for my Projects and Testimonials sections, I noticed
|
|
|
|
that the Imagecache-scaled images weren't as high a quality the originals on my
|
|
|
|
Mac. I did some searching online and found out that, by default, Drupal
|
|
|
|
resamples uploaded jpgs to 75% of their original quality.
|
2015-03-16 21:18:03 +00:00
|
|
|
|
2020-03-08 17:52:59 +00:00
|
|
|
To increase the quality of your images, change the setting in the two following
|
|
|
|
places:
|
2015-03-16 21:18:03 +00:00
|
|
|
|
2020-03-08 17:52:59 +00:00
|
|
|
- admin/settings/imageapi/config
|
|
|
|
- admin/settings/image-toolkit
|
|
|
|
|
|
|
|
The first one is for ImageAPI. Primarily, this means Imagecache presets. The
|
|
|
|
second one is for core's image.inc. This is used for resizing profile pictures
|
|
|
|
in core, and some contrib modules. Once changed, I did have to flush each of the
|
|
|
|
Imagecache presets (admin/dist/imagecache) for the changes to take effect.
|