Search found 12 matches

by cam
2013-12-09T07:56:06-07:00
Forum: Bugs
Topic: Bug converting from jpg to bmp
Replies: 4
Views: 6619

Re: Bug converting from jpg to bmp

I am using this version: Version: ImageMagick 6.8.7-8 Q8 i686 2013-12-01 http://www.imagemagick.org Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC Features: DPC OpenMP Delegates: bzlib djvu fontconfig freetype jng jp2 jpeg lcms lqr openexr pangocairo png tiff x xml zlib It is rare that ...
by cam
2013-12-08T13:01:39-07:00
Forum: Bugs
Topic: Bug converting from jpg to bmp
Replies: 4
Views: 6619

Bug converting from jpg to bmp

Hi, i use this command to convert file formats: convert hi.jpg hi.bmp and everything went okay, but the hi.bmp file siz is 75000054 bytes and if you open it the File size of the Image Header says 75000154 bytes, when i convert the same jpg image to bmp with photoshop or gimp the file size match ...
by cam
2013-12-06T19:51:25-07:00
Forum: MagickWand
Topic: MagickCore can't sync pixel
Replies: 7
Views: 20819

Re: MagickCore can't sync pixel

changed to PixelPaket* but it still nto working,

I posted all the code of the file, probably it will help
by cam
2013-12-06T11:28:35-07:00
Forum: MagickWand
Topic: MagickCore can't sync pixel
Replies: 7
Views: 20819

Re: MagickCore can't sync pixel

hello, It says: Version: ImageMagick 6.8.7-8 Q8 i686 2013-12-01 http://www.imagemagick.org Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC Features: DPC OpenMP Delegates: bzlib djvu fontconfig freetype jng jp2 jpeg lcms lqr openexr pangocairo png tiff x xml zlib I have Q8 version, i really ...
by cam
2013-12-06T10:07:20-07:00
Forum: MagickWand
Topic: MagickCore can't sync pixel
Replies: 7
Views: 20819

Re: MagickCore can't sync pixel

hi friend,

I am sure i am using Q8 version and the image i have read from dile is 24bits of depth. Could you post a working way to get a and set a pixel in MagickCore?.

I am pretty newbie in this library and trying to start with the basics.

Thanks for your time.
by cam
2013-12-04T17:16:07-07:00
Forum: MagickWand
Topic: Set/Get specific pixel of a image
Replies: 1
Views: 11159

Set/Get specific pixel of a image

Hello,

How can i get/set a specific pixel of the image? for example to set the pixel (0,0) or the (134,334) pixel.

Any function to do this?

Thanks.
by cam
2013-12-02T05:07:39-07:00
Forum: MagickWand
Topic: Allocate memory for pixel map of a image in C
Replies: 1
Views: 11009

Re: Allocate memory for pixel map of a image in C

Is this correct to edit the second pixel of the space allocated?

Code: Select all

MagickPixelPacket *pixels_map = (MagickPixelPacket *) malloc(sizeof(MagickPixelPacket) * image_width * image_height);
pixels_map[1].red = 255;
pixels_map[1].green 255;
pixels_map[1].blue = 255;
by cam
2013-12-01T18:49:08-07:00
Forum: MagickWand
Topic: Allocate memory for pixel map of a image in C
Replies: 1
Views: 11009

Allocate memory for pixel map of a image in C

Hello,

How can i allocate memory for the entire pixel array of a image read from disk?.
I need to allocate with calloc but I don't know all the structs and datatypes of magickwand,

Please give that 1 line of code to do what i need.

Thanks a lot!.


Ps: I am using imagemagick Q8 and C languague.
by cam
2013-12-01T18:39:50-07:00
Forum: MagickWand
Topic: 24Bit BMP image treated as a 48Bits image?
Replies: 7
Views: 19803

Re: 24Bit BMP image treated as a 48Bits image?

Hi,

I reinstalled imagemagick with Q8 option and now every image has 8bits per channel with this command in the instalation from console:

Code: Select all

./configure --with-quantum-depth=8
Thanks a lot.
by cam
2013-11-30T13:08:33-07:00
Forum: MagickWand
Topic: 24Bit BMP image treated as a 48Bits image?
Replies: 7
Views: 19803

Re: 24Bit BMP image treated as a 48Bits image?

The image that i open is 24bits and the image that my code writes in disk is 24bits, but in pixel iterators i treat the image as it was 48bits (16bits per channel).

I want to treat the image as 24bits (0-255 for each channel, not 0-65535 for each channel) image.

Thank you very much for your time.
by cam
2013-11-30T10:06:16-07:00
Forum: MagickWand
Topic: 24Bit BMP image treated as a 48Bits image?
Replies: 7
Views: 19803

Re: 24Bit BMP image treated as a 48Bits image?

Hi,

and how can i change my MagicWand version to Q8? Any idea?

Thank you very much
by cam
2013-11-29T23:38:00-07:00
Forum: MagickWand
Topic: 24Bit BMP image treated as a 48Bits image?
Replies: 7
Views: 19803

24Bit BMP image treated as a 48Bits image?

Hello, This is my first time with ImageMagick. I read a 24bit BMP file (8 bits per channel) and when i iterate pixel by pixel the pixels are 16bits per channel. What is happening? this is my code: #include <stdio.h> #include <stdlib.h> #include <math.h> #include <wand/MagickWand.h> #include <string ...