Search found 10 matches

by danieru
2014-11-18T14:31:02-07:00
Forum: Users
Topic: -colorspace sRGB equivalent in magick++?
Replies: 7
Views: 7112

Re: -colorspace sRGB equivalent in magick++?

If your command below is not good color quality
No no, the color with this command is okay for me. I'm just asking how to do the same that -colorspace sRGB does but with Magick++.
But if it not possible, then something similar.



With profiles and assuming the pdf is CMYK like the jpg, use ...
by danieru
2014-11-18T05:01:36-07:00
Forum: Users
Topic: -colorspace sRGB equivalent in magick++?
Replies: 7
Views: 7112

Re: -colorspace sRGB equivalent in magick++?

I should've give this links of the images instead:
Image 1
Image 2
by danieru
2014-11-18T00:42:26-07:00
Forum: Users
Topic: -colorspace sRGB equivalent in magick++?
Replies: 7
Views: 7112

Re: -colorspace sRGB equivalent in magick++?

Just to clarify, this is the image I get if convert a pdf to an image using imagemagick without -colorspace sRGB .
It is also what I get if only open the pdf and save it using magick++
convert -density 72 -quality 90% Blender.pdf[0] Blender.jpg
http://s11.postimg.org/uf4eg2wf5/Blender.jpg
http ...
by danieru
2014-11-18T00:04:34-07:00
Forum: Users
Topic: -colorspace sRGB equivalent in magick++?
Replies: 7
Views: 7112

Re: -colorspace sRGB equivalent in magick++?

Thanks for your reply,
I update my imagemagick and is now 6.9.0-0, or at least that is what says convert -version:

Version: ImageMagick 6.9.0-0 Q16 x86_64 2014-11-17 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates (built-in ...
by danieru
2014-11-17T19:33:11-07:00
Forum: Users
Topic: -colorspace sRGB equivalent in magick++?
Replies: 7
Views: 7112

-colorspace sRGB equivalent in magick++?

Hi everyone,

when I convert a pdf to an image the value and saturation seems wrong, but by adding -colorspace sRGB corrects the output image. Now I want to do the same in magick++ but I can't find the equivalent procedure.

I already try with colorSpace(sRGBColorspace) but it does nothing. Does ...
by danieru
2014-06-14T16:16:16-07:00
Forum: Users
Topic: [Solved] Using Magick++ in a GTK app
Replies: 3
Views: 6798

Re: Using Magick++ in a GTK app

Thank you very much for the tip! Now rowstride has the value that should (image width * number of bits per pixel), and that solved the problem :D
http://s4.postimg.org/valx2aubh/Captura_de_pantalla_de_2014_06_14_16_48_58.png

Here's a function that takes a Magick::Image object and returns a Gdk ...
by danieru
2014-06-13T20:51:50-07:00
Forum: Users
Topic: [Solved] Using Magick++ in a GTK app
Replies: 3
Views: 6798

Re: Using Magick++ in a GTK app

After more searching I found this

So I took advice and changed the code to:

#include <Magick++.h>
#include <gtkmm.h>
#include <iostream>

using namespace std;
using namespace Magick;

class MyArea : public Gtk::DrawingArea
{
public:
MyArea();
virtual ~MyArea();

protected:
//Override default ...
by danieru
2014-06-13T20:00:49-07:00
Forum: Magick++
Topic: [Solved] ‘CharPixel’ was not declared in this scope
Replies: 1
Views: 13676

Re: [Solved] ‘CharPixel’ was not declared in this scope

Solved: I just forgot the magic word "Magick::" :oops:
by danieru
2014-06-13T19:09:02-07:00
Forum: Magick++
Topic: [Solved] ‘CharPixel’ was not declared in this scope
Replies: 1
Views: 13676

[Solved] ‘CharPixel’ was not declared in this scope

When trying to obtain the RGB data with:
image.write(0, 0, width, height, "RGB", CharPixel, data);
I get an error while compiling:
main.cpp: In constructor ‘MyArea::MyArea()’:
main.cpp:51:44: error: ‘CharPixel’ was not declared in this scope
image.write(0, 0, width, height, "RGB", CharPixel ...
by danieru
2014-06-13T15:18:13-07:00
Forum: Users
Topic: [Solved] Using Magick++ in a GTK app
Replies: 3
Views: 6798

[Solved] Using Magick++ in a GTK app

Hello everyone,

I was for a while trying to load this image file with Magick++ and then show it in a simple GTK app.

But in my attempt I get a runtime error of GTK when load a blob in a pixbuf.

Here's my code until now:

#include <Magick++.h>
#include <gtkmm.h>
#include <iostream>

using ...