diff options
| author | Paul Eggert | 2011-12-10 16:56:50 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-12-10 16:56:50 -0800 |
| commit | 8f50130c565eaf0ad7c49e4ad044c3291ecdfa71 (patch) | |
| tree | c8129448cbbf387fe82667ccac02983592c688f1 /src/image.c | |
| parent | 85a83e2e2585a1906dec5168ed96ad521b5849ed (diff) | |
| parent | 7b9d523a07395ecea505be88f45c33d73aea7038 (diff) | |
| download | emacs-8f50130c565eaf0ad7c49e4ad044c3291ecdfa71.tar.gz emacs-8f50130c565eaf0ad7c49e4ad044c3291ecdfa71.zip | |
Merge from trunk.
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/image.c b/src/image.c index fd842f3e347..736c1b3472f 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -7619,7 +7619,7 @@ imagemagick_load_image (struct frame *f, struct image *img, | |||
| 7619 | image = image_spec_value (img->spec, QCindex, NULL); | 7619 | image = image_spec_value (img->spec, QCindex, NULL); |
| 7620 | ino = INTEGERP (image) ? XFASTINT (image) : 0; | 7620 | ino = INTEGERP (image) ? XFASTINT (image) : 0; |
| 7621 | ping_wand = NewMagickWand (); | 7621 | ping_wand = NewMagickWand (); |
| 7622 | MagickSetResolution (ping_wand, 2, 2); | 7622 | |
| 7623 | if (filename != NULL) | 7623 | if (filename != NULL) |
| 7624 | { | 7624 | { |
| 7625 | status = MagickPingImage (ping_wand, filename); | 7625 | status = MagickPingImage (ping_wand, filename); |
| @@ -7629,6 +7629,8 @@ imagemagick_load_image (struct frame *f, struct image *img, | |||
| 7629 | status = MagickPingImageBlob (ping_wand, contents, size); | 7629 | status = MagickPingImageBlob (ping_wand, contents, size); |
| 7630 | } | 7630 | } |
| 7631 | 7631 | ||
| 7632 | MagickSetResolution (ping_wand, 2, 2); | ||
| 7633 | |||
| 7632 | if (! (0 <= ino && ino < MagickGetNumberImages (ping_wand))) | 7634 | if (! (0 <= ino && ino < MagickGetNumberImages (ping_wand))) |
| 7633 | { | 7635 | { |
| 7634 | image_error ("Invalid image number `%s' in image `%s'", | 7636 | image_error ("Invalid image number `%s' in image `%s'", |
| @@ -7755,7 +7757,7 @@ imagemagick_load_image (struct frame *f, struct image *img, | |||
| 7755 | } | 7757 | } |
| 7756 | 7758 | ||
| 7757 | /* Finally we are done manipulating the image. Figure out the | 7759 | /* Finally we are done manipulating the image. Figure out the |
| 7758 | resulting width/height and transfer ownerwship to Emacs. */ | 7760 | resulting width/height and transfer ownership to Emacs. */ |
| 7759 | height = MagickGetImageHeight (image_wand); | 7761 | height = MagickGetImageHeight (image_wand); |
| 7760 | width = MagickGetImageWidth (image_wand); | 7762 | width = MagickGetImageWidth (image_wand); |
| 7761 | 7763 | ||
| @@ -7787,7 +7789,7 @@ imagemagick_load_image (struct frame *f, struct image *img, | |||
| 7787 | goto imagemagick_error; | 7789 | goto imagemagick_error; |
| 7788 | } | 7790 | } |
| 7789 | 7791 | ||
| 7790 | /* Copy imagegmagick image to x with primitive yet robust pixel | 7792 | /* Copy imagemagick image to x with primitive yet robust pixel |
| 7791 | pusher loop. This has been tested a lot with many different | 7793 | pusher loop. This has been tested a lot with many different |
| 7792 | images. */ | 7794 | images. */ |
| 7793 | 7795 | ||