Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some drawings I made with an Intuos tablet. All of these drawings are 25x35 or so. The color of each pixel was very carefully selected. They're kind of like 'miniatures.'

I need to resize these. But I ran into problems. The images get dithered, and if I make them huge, blurred.

Here is the image at normal size. It happens to be dithered, but this is not visible.

enter image description here

I used the following two imagemagic commands, but they both produced blurring:

convert -resize 400% image.xcf image-2.jpg
convert -adaptive-resize 400% image.xcf image-2.jpg

enter image description here

share|improve this question
up vote 6 down vote accepted

There are many more resize options in imagemagick. -scale looks like what you need.

enter image description here

Also, do not use JPEG for pixel-perfect "miniatures"; use PNG instead (or if impossible, GIF). JPEG is designed for photos and uses lossy compression, resulting in distortion clearly noticeable after scaling your provided JPEG sample.

This article on image scaling might be interesting.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.