Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.