Search found 309 matches
- 2007-10-01T11:27:03-07:00
- Forum: MagickWand
- Topic: MagickExtentImage
- Replies: 8
- Views: 23441
Re: MagickExtentImage
Thank you for seeing all the trouble, Pete! Now I get the point in the coordinates
- 2007-10-01T08:56:08-07:00
- Forum: Users
- Topic: PDF Thumbnail
- Replies: 0
- Views: 3528
Re: PDF Thumbnail
Hi folks, i've got some strange Problem. I try to convert 10 TIF-files to one PDF-File. The PDF-File looks very nice and the file size is small (around 2,5 mb), but the thumbnails shown by Adobe Reader look horrible. I found out that it has to do something with the used compression of the TIF-Files...
- 2007-10-01T08:55:00-07:00
- Forum: IMagick
- Topic: Merge two images / replicating Photoshop's "resize canvas"?
- Replies: 27
- Views: 73467
Re: Merge two images / replicating Photoshop's "resize canvas"?
Jack-S wrote:Regardless of that, for anyone that wants it, this is my alternative version of extentImage, which takes a gravity constant rather than x and y:
Good work, Jack! Personally I like people who don't just leave a topic hanging but post back their results so that other people can learn from that also!
- 2007-10-01T08:53:25-07:00
- Forum: MagickWand
- Topic: MagickExtentImage
- Replies: 8
- Views: 23441
Re: MagickExtentImage
Hi Mikko, I tried that same sort of code yesterday :-) It appears that coordinate (0,0) is the top left of the original image so that when you place the original image in the middle of a larger canvas, the coordinate of the top left corner of the extent will be negative. Pete Hello Pete, I really c...
- 2007-10-01T02:53:03-07:00
- Forum: IMagick
- Topic: Merge two images / replicating Photoshop's "resize canvas"?
- Replies: 27
- Views: 73467
Re: Merge two images / replicating Photoshop's "resize canvas"?
Is wonder if this intended behavior? Perhaps, but I can't think why it would be. It goes against the convention of all other methods with an x and y parameter. x is always the distance right, from the left, but this is currently the distance left from the left. Personally I can't think of any reaso...
- 2007-10-01T02:27:48-07:00
- Forum: MagickWand
- Topic: MagickExtentImage
- Replies: 8
- Views: 23441
MagickExtentImage
#include <stdio.h> #include <wand/magick-wand.h> int main() { MagickWand *magick_wand; PixelWand *pixel_wand; magick_wand = NewMagickWand(); pixel_wand = NewPixelWand(); PixelSetColor( pixel_wand, "red" ); MagickNewImage( magick_wand, 400, 400, pixel_wand ); /* After this the red area top...
- 2007-10-01T02:22:08-07:00
- Forum: IMagick
- Topic: Merge two images / replicating Photoshop's "resize canvas"?
- Replies: 27
- Views: 73467
Re: Merge two images / replicating Photoshop's "resize canvas"?
OK, I've tested it and yes, it does exactly what I need :), however there seems to be a little bug :(. The x and y values move the image in the opposite direction to what you'd expect. e.g., to place the image 200px from the left of the "canvas" you have to specify it as -200, and setting...
- 2007-09-30T15:05:33-07:00
- Forum: IMagick
- Topic: Merge two images / replicating Photoshop's "resize canvas"?
- Replies: 27
- Views: 73467
Re: Merge two images / replicating Photoshop's "resize canvas"?
One other thing, is there anywhere I can get the most recent IMagick (2.0.0rc4+) windows dll for PHP 5.2.4? Pecl4win doesn't have it. If you're using Windows check http://snaps.php.net . You should find pecl-dev 5.2 zip from there. It should contain php_imagick.dll. extentImage should be in the nex...
- 2007-09-30T15:03:20-07:00
- Forum: IMagick
- Topic: Merge two images / replicating Photoshop's "resize canvas"?
- Replies: 27
- Views: 73467
Re: Merge two images / replicating Photoshop's "resize canvas"?
I browsed trough the API docs and noticed this function: http://imagemagick.org/api/magick-image.php#MagickExtentImage I tried it with C code and it seems to be doing exactly what you're after. I will add this later today or during tomorrow so you can test it. I actually implemented it already :) I...
- 2007-09-30T14:53:17-07:00
- Forum: IMagick
- Topic: Merge two images / replicating Photoshop's "resize canvas"?
- Replies: 27
- Views: 73467
Re: Merge two images / replicating Photoshop's "resize canvas"?
I browsed trough the API docs and noticed this function:
http://imagemagick.org/api/magick-image ... xtentImage
I tried it with C code and it seems to be doing exactly what you're after. I will add this later today or during tomorrow so you can test it.
http://imagemagick.org/api/magick-image ... xtentImage
I tried it with C code and it seems to be doing exactly what you're after. I will add this later today or during tomorrow so you can test it.
- 2007-09-30T14:46:07-07:00
- Forum: IMagick
- Topic: Merge two images / replicating Photoshop's "resize canvas"?
- Replies: 27
- Views: 73467
Re: Merge two images / replicating Photoshop's "resize canvas"?
Perhaps I'm confused, but what does the IMagick extension have to do with MagickWand? Sure MagickWand doesn't support it, but why can't it be added to IMagick? Imagick extension uses the MagickWand API. Basically when you call Imagick functions it is about the same as you would use the MagickWand A...
- 2007-09-30T11:33:16-07:00
- Forum: Bugs
- Topic: MagickWand, using rose: format
- Replies: 2
- Views: 7572
MagickWand, using rose: format
Consider this code: #include <stdio.h> #include <wand/magick-wand.h> int main() { MagickWand *magick_wand; unsigned char *image; magick_wand = NewMagickWand(); size_t length; MagickReadImage( magick_wand, "rose:" ); MagickSetSize( magick_wand, 200, 200 ); image = MagickGetImageBlob( magick...
- 2007-09-30T10:15:50-07:00
- Forum: IMagick
- Topic: Merge two images / replicating Photoshop's "resize canvas"?
- Replies: 27
- Views: 73467
Re: Merge two images / replicating Photoshop's "resize canvas"?
Magickwand has two functions which deal with background colour. One is MagickSetImageBackgroundColor and the other is MagickSetBackgroundColor. If IMagick also has a setBackgroundColor function I think you'll find that it is the one you need. Pete Seems like neither of them helps in this case. Magi...
- 2007-09-30T08:27:49-07:00
- Forum: IMagick
- Topic: Merge two images / replicating Photoshop's "resize canvas"?
- Replies: 27
- Views: 73467
Re: Merge two images / replicating Photoshop's "resize canvas"?
Seems like setting background color does not affect extent. You could ask in general forum how to set the image extent color. You can also try this code: function resizeCanvasImage( Imagick $image, $widthB, $heightB, $gravity, ImagickPixel $backgroundColor = null ) { $composite = new Imagick(); $com...
- 2007-09-30T07:49:02-07:00
- Forum: IMagick
- Topic: Merge two images / replicating Photoshop's "resize canvas"?
- Replies: 27
- Views: 73467
Re: Merge two images / replicating Photoshop's "resize canvas"?
Yes, of course. Try setting the background to white. In my opinion that should work. I can test that a little later if it doesn't work for you.Jack-S wrote:The source and target are JPEG yeah. Shouldn't there be a way to set the colour though, even with JPEG's?