This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/_posts/2010-06-02-improve-jpg-quality.md

17 lines
928 B
Markdown
Raw Normal View History

2015-03-16 21:18:03 +00:00
---
title: Improve JPG Quality in Imagecache and ImageAPI
2015-03-17 04:04:02 +00:00
nav: blog
2015-03-16 21:18:03 +00:00
slug: improve-jpg-quality-imagecache-and-imageapi
tags:
- Drupal Planet
- Drupal 6
- ImageCache
---
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.
To increase the quality of your images, change the setting in the two following places:
* 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/build/imagecache) for the changes to take effect.