Hi,

I wanted (...) was a function to resize the user picture and finally settled for the snippet by EnekoAlonso/ajwwong in http://drupal.org/node/59151. I was very happy until I was tripped mercilessly by the bug in image_scale that prevents up-scaling of images (ie if my user picture is smaller than the size I want to resize it to) which is not good.

Now, I've tried to copy-paste a couple of fixes (such as the image_scale_and_crop in http://drupal.org/files/issues/scale_and_crop.patch) but nothing happens, the problem remains.

Anybody got a hint for me?

Petter

Comments

ilmaestro’s picture

Try switching to the imagemagick library, instead of the build in GD2. To get it, download the image library, and install/enable the imagemagick module (you don't actually need the image module itself, just the imagemagick one). You can then go to the image settings under admin, and switch from GD2 to imagemagick. Also, you have to have imagemagick installed on your machine (google it).

jonathan

PWG’s picture

Thank, ilmeastro, did that. Nothing happened though in terms of solving my problem.
However, after having started implementing imagecache and the same problem showing up, even after having implemented a patch to take care of the up-scaling problem, it finally just started to work. Don't really know why (probably just missed something because I'm too tired). On the other hand, it's three o'clock in the morning and I'm perfectly happy the way things turned out. :)

Thanks again.

Petter