Using scale and crop for my user pictures is producing very poor picture quality. My image toolkit jpeg quality is set to 100% compression. Also, separate issue, but using scale, and then crop, individually somehow ignores cropping altogether and simply scales the image to the crop dimensions with a black background?! Did not experience this in the 5x branch - just started using the 6x branch.

Comments

manop’s picture

You might wanna change the resolution at ImageAPI as well for scaling and cropping. For the black background issue, please see http://drupal.org/node/422836

drewish’s picture

Status: Active » Fixed

i'd also say to make sure you're setting the quality on the imageapi toolkit rather than the core toolkit.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

WoozyDuck’s picture

I actually have the same problem, and it is not anything to do with ImageAPI or Image toolkit qualities.
I have noticed when imagecache resizes an image, it make it blurry a bit when using "Scale and Crop" action
how to prevent that?

lucidus_neil’s picture

We ran into a similar problem when we did a two step process to scale images and then crop them as follows:

Action 1. Scale - 100px height - upscale = yes
Action 2. Scale & Crop - 75px wide - 100% height

When an image was taller than a 3:4 ratio (i.e. 75x100), step one would shrink it to be very small width wise which made resolution go down. Step 2 would scale it back out to 75px wide and then crop. This made the image very blurry. Here's an example:

original image - 150 wide by 400 tall image

Step 1. Scale - Reduces image to 37.5px wide by 100 px tall
Step 2. Scale & Crop - Increase image back up to 75px wide (but we already lost the data of the at this size in the previous step).

If i crop the image to make the ratio 3:4, I have no issue and a crisp image. Not sure if it helps but this at least helped me keep some sanity as to why this wasn't working

pribeh’s picture

Hi lucidus_neil,

Are you getting good results then from the following steps:

Step 1. crop (3:4)
Step 2. resize

Or vice a versa?

Thanks,