librelist archives

« back to archive

How to set colorspace with Wand?

How to set colorspace with Wand?

From:
Johnny W. Santos
Date:
2013-01-30 @ 16:27
Hello Everybody.

I need to set colorspace as RGB on some JPG that i  converted from a PDF.

How can i do this?

-- 
Johnny W. dos Santos
<https://www.facebook.com/johnny.welll>
<https://twitter.com/#!/OSrJota>
<http://br.linkedin.com/pub/johnny-santos/32/386/381>

Re: [wand] How to set colorspace with Wand?

From:
Hong Minhee
Date:
2013-01-30 @ 18:02
Hi Johnny,

You can change this using Image.type property.  I just wrote docs about this:

  http://docs.wand-py.org/en/latest/guide/colorspace.html


Thanks,
Hong Minhee

On Jan 31, 2013, at 1:27 AM, "Johnny W. Santos" <johnny.w.santos@gmail.com> wrote:

> Hello Everybody.
> 
> I need to set colorspace as RGB on some JPG that i  converted from a PDF.
> 
> How can i do this?
> 
> -- 
> Johnny W. dos Santos
>   

Re: [wand] How to set colorspace with Wand?

From:
Johnny W. Santos
Date:
2013-01-30 @ 18:22
Wow that's awesome, thanks.


2013/1/30 Hong Minhee <minhee@dahlia.kr>

> Hi Johnny,
>
> You can change this using Image.type property.  I just wrote docs about
> this:
>
>   http://docs.wand-py.org/en/latest/guide/colorspace.html
>
>
> Thanks,
> Hong Minhee
>
> On Jan 31, 2013, at 1:27 AM, "Johnny W. Santos" <johnny.w.santos@gmail.com>
> wrote:
>
> > Hello Everybody.
> >
> > I need to set colorspace as RGB on some JPG that i  converted from a PDF.
> >
> > How can i do this?
> >
> > --
> > Johnny W. dos Santos
> >
>
>


-- 
Johnny W. dos Santos
<https://www.facebook.com/johnny.welll>
<https://twitter.com/#!/OSrJota>
<http://br.linkedin.com/pub/johnny-santos/32/386/381>

Re: [wand] How to set colorspace with Wand?

From:
Johnny W. Santos
Date:
2013-01-30 @ 18:40
Something isn't right.
I have two JPG  converted from the same PDF, one of them i used just
"convert file.pdf file.jpg" and don't worked, the other i used "convert
file.pdf -colorspace RGB file.jpg and this worked.

But in the interactive python shell when i open this objects with Image
from wand.image they have the same type, 'colorseparation'.

I don't know whats the diference.


2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>

> Wow that's awesome, thanks.
>
>
> 2013/1/30 Hong Minhee <minhee@dahlia.kr>
>
>> Hi Johnny,
>>
>> You can change this using Image.type property.  I just wrote docs about
>> this:
>>
>>   http://docs.wand-py.org/en/latest/guide/colorspace.html
>>
>>
>> Thanks,
>> Hong Minhee
>>
>> On Jan 31, 2013, at 1:27 AM, "Johnny W. Santos" <
>> johnny.w.santos@gmail.com> wrote:
>>
>> > Hello Everybody.
>> >
>> > I need to set colorspace as RGB on some JPG that i  converted from a
>> PDF.
>> >
>> > How can i do this?
>> >
>> > --
>> > Johnny W. dos Santos
>> >
>>
>>
>
>
> --
> Johnny W. dos Santos
> <https://www.facebook.com/johnny.welll>  
<https://twitter.com/#!/OSrJota> 
<http://br.linkedin.com/pub/johnny-santos/32/386/381>
>



-- 
Johnny W. dos Santos
<https://www.facebook.com/johnny.welll>
<https://twitter.com/#!/OSrJota>
<http://br.linkedin.com/pub/johnny-santos/32/386/381>

Re: [wand] How to set colorspace with Wand?

From:
Johnny W. Santos
Date:
2013-01-30 @ 18:44
Sorry, i made a mistake. Indeed one of them is colorseparation type and the
other what works is truecolor type.


2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>

> Something isn't right.
> I have two JPG  converted from the same PDF, one of them i used just
> "convert file.pdf file.jpg" and don't worked, the other i used "convert
> file.pdf -colorspace RGB file.jpg and this worked.
>
> But in the interactive python shell when i open this objects with Image
> from wand.image they have the same type, 'colorseparation'.
>
> I don't know whats the diference.
>
>
> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>
> Wow that's awesome, thanks.
>>
>>
>> 2013/1/30 Hong Minhee <minhee@dahlia.kr>
>>
>>> Hi Johnny,
>>>
>>> You can change this using Image.type property.  I just wrote docs about
>>> this:
>>>
>>>   http://docs.wand-py.org/en/latest/guide/colorspace.html
>>>
>>>
>>> Thanks,
>>> Hong Minhee
>>>
>>> On Jan 31, 2013, at 1:27 AM, "Johnny W. Santos" <
>>> johnny.w.santos@gmail.com> wrote:
>>>
>>> > Hello Everybody.
>>> >
>>> > I need to set colorspace as RGB on some JPG that i  converted from a
>>> PDF.
>>> >
>>> > How can i do this?
>>> >
>>> > --
>>> > Johnny W. dos Santos
>>> >
>>>
>>>
>>
>>
>> --
>> Johnny W. dos Santos
>> <https://www.facebook.com/johnny.welll>  <https://twitter.com/#!/OSrJota>
>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>
>
>
>
> --
> Johnny W. dos Santos
> <https://www.facebook.com/johnny.welll>  
<https://twitter.com/#!/OSrJota> 
<http://br.linkedin.com/pub/johnny-santos/32/386/381>
>



-- 
Johnny W. dos Santos
<https://www.facebook.com/johnny.welll>
<https://twitter.com/#!/OSrJota>
<http://br.linkedin.com/pub/johnny-santos/32/386/381>

Re: [wand] How to set colorspace with Wand?

From:
Johnny W. Santos
Date:
2013-01-30 @ 19:10
Just another detail, when i do wand.type = 'truecolor' the resultante image
becomes whitish, and doing in shell convert with -colorspace argument it
stay normal.

Have something i forgotten?


2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>

> Sorry, i made a mistake. Indeed one of them is colorseparation type and
> the other what works is truecolor type.
>
>
> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>
>> Something isn't right.
>> I have two JPG  converted from the same PDF, one of them i used just
>> "convert file.pdf file.jpg" and don't worked, the other i used "convert
>> file.pdf -colorspace RGB file.jpg and this worked.
>>
>> But in the interactive python shell when i open this objects with Image
>> from wand.image they have the same type, 'colorseparation'.
>>
>> I don't know whats the diference.
>>
>>
>> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>>
>> Wow that's awesome, thanks.
>>>
>>>
>>> 2013/1/30 Hong Minhee <minhee@dahlia.kr>
>>>
>>>> Hi Johnny,
>>>>
>>>> You can change this using Image.type property.  I just wrote docs about
>>>> this:
>>>>
>>>>   http://docs.wand-py.org/en/latest/guide/colorspace.html
>>>>
>>>>
>>>> Thanks,
>>>> Hong Minhee
>>>>
>>>> On Jan 31, 2013, at 1:27 AM, "Johnny W. Santos" <
>>>> johnny.w.santos@gmail.com> wrote:
>>>>
>>>> > Hello Everybody.
>>>> >
>>>> > I need to set colorspace as RGB on some JPG that i  converted from a
>>>> PDF.
>>>> >
>>>> > How can i do this?
>>>> >
>>>> > --
>>>> > Johnny W. dos Santos
>>>> >
>>>>
>>>>
>>>
>>>
>>> --
>>> Johnny W. dos Santos
>>> <https://www.facebook.com/johnny.welll> <https://twitter.com/#!/OSrJota>
>>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>>
>>
>>
>>
>> --
>> Johnny W. dos Santos
>> <https://www.facebook.com/johnny.welll>  <https://twitter.com/#!/OSrJota>
>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>
>
>
>
> --
> Johnny W. dos Santos
> <https://www.facebook.com/johnny.welll>  
<https://twitter.com/#!/OSrJota> 
<http://br.linkedin.com/pub/johnny-santos/32/386/381>
>



-- 
Johnny W. dos Santos
<https://www.facebook.com/johnny.welll>
<https://twitter.com/#!/OSrJota>
<http://br.linkedin.com/pub/johnny-santos/32/386/381>

Re: [wand] How to set colorspace with Wand?

From:
Johnny W. Santos
Date:
2013-02-04 @ 13:26
Here are the samples from my usage, and what occurs wrong

PDF --> http://dl.dropbox.com/u/86138930/stock.pdf

Whitish JPG --> http://dl.dropbox.com/u/86138930/stock.jpg (this is from
wand)

Normal JPG --> http://dl.dropbox.com/u/86138930/stock_rgb.jpg (this is from
shell)

When i convert from shell with "convert stock.pdf -colrspace RGB stock.jpg"
thats work fine.
But in Wand (http://pypi.python.org/pypi/Wand) i have to do like this
http://docs.wand-py.org/en/latest/guide/colorspace.html
but the resultant image isn't the same.

Both images are the truecolor type in wand, but one is normal and other
whitish.


2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>

> Just another detail, when i do wand.type = 'truecolor' the resultante
> image becomes whitish, and doing in shell convert with -colorspace argument
> it stay normal.
>
> Have something i forgotten?
>
>
> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>
>> Sorry, i made a mistake. Indeed one of them is colorseparation type and
>> the other what works is truecolor type.
>>
>>
>> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>>
>>> Something isn't right.
>>> I have two JPG  converted from the same PDF, one of them i used just
>>> "convert file.pdf file.jpg" and don't worked, the other i used "convert
>>> file.pdf -colorspace RGB file.jpg and this worked.
>>>
>>> But in the interactive python shell when i open this objects with Image
>>> from wand.image they have the same type, 'colorseparation'.
>>>
>>> I don't know whats the diference.
>>>
>>>
>>> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>>>
>>> Wow that's awesome, thanks.
>>>>
>>>>
>>>> 2013/1/30 Hong Minhee <minhee@dahlia.kr>
>>>>
>>>>> Hi Johnny,
>>>>>
>>>>> You can change this using Image.type property.  I just wrote docs
>>>>> about this:
>>>>>
>>>>>   http://docs.wand-py.org/en/latest/guide/colorspace.html
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Hong Minhee
>>>>>
>>>>> On Jan 31, 2013, at 1:27 AM, "Johnny W. Santos" <
>>>>> johnny.w.santos@gmail.com> wrote:
>>>>>
>>>>> > Hello Everybody.
>>>>> >
>>>>> > I need to set colorspace as RGB on some JPG that i  converted from a
>>>>> PDF.
>>>>> >
>>>>> > How can i do this?
>>>>> >
>>>>> > --
>>>>> > Johnny W. dos Santos
>>>>> >
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Johnny W. dos Santos
>>>> <https://www.facebook.com/johnny.welll> <https://twitter.com/#!/OSrJota>
>>>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>>>
>>>
>>>
>>>
>>> --
>>> Johnny W. dos Santos
>>> <https://www.facebook.com/johnny.welll> <https://twitter.com/#!/OSrJota>
>>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>>
>>
>>
>>
>> --
>> Johnny W. dos Santos
>> <https://www.facebook.com/johnny.welll>  <https://twitter.com/#!/OSrJota>
>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>
>
>
>
> --
> Johnny W. dos Santos
> <https://www.facebook.com/johnny.welll>  
<https://twitter.com/#!/OSrJota> 
<http://br.linkedin.com/pub/johnny-santos/32/386/381>
>



-- 
Johnny W. dos Santos
<https://www.facebook.com/johnny.welll>
<https://twitter.com/#!/OSrJota>
<http://br.linkedin.com/pub/johnny-santos/32/386/381>

Re: [wand] How to set colorspace with Wand?

From:
Johnny W. Santos
Date:
2013-02-05 @ 11:07
here's my post in IM forum about that case, until now i can't solve this.

Anyone has an ideia?


2013/2/4 Johnny W. Santos <johnny.w.santos@gmail.com>

> Here are the samples from my usage, and what occurs wrong
>
> PDF --> http://dl.dropbox.com/u/86138930/stock.pdf
>
> Whitish JPG --> http://dl.dropbox.com/u/86138930/stock.jpg (this is from
> wand)
>
> Normal JPG --> http://dl.dropbox.com/u/86138930/stock_rgb.jpg (this is
> from shell)
>
> When i convert from shell with "convert stock.pdf -colrspace RGB
> stock.jpg" thats work fine.
> But in Wand (http://pypi.python.org/pypi/Wand) i have to do like this
> http://docs.wand-py.org/en/latest/guide/colorspace.html
> but the resultant image isn't the same.
>
> Both images are the truecolor type in wand, but one is normal and other
> whitish.
>
>
> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>
>> Just another detail, when i do wand.type = 'truecolor' the resultante
>> image becomes whitish, and doing in shell convert with -colorspace argument
>> it stay normal.
>>
>> Have something i forgotten?
>>
>>
>> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>>
>>> Sorry, i made a mistake. Indeed one of them is colorseparation type and
>>> the other what works is truecolor type.
>>>
>>>
>>> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>>>
>>>> Something isn't right.
>>>> I have two JPG  converted from the same PDF, one of them i used just
>>>> "convert file.pdf file.jpg" and don't worked, the other i used "convert
>>>> file.pdf -colorspace RGB file.jpg and this worked.
>>>>
>>>> But in the interactive python shell when i open this objects with Image
>>>> from wand.image they have the same type, 'colorseparation'.
>>>>
>>>> I don't know whats the diference.
>>>>
>>>>
>>>> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>>>>
>>>> Wow that's awesome, thanks.
>>>>>
>>>>>
>>>>> 2013/1/30 Hong Minhee <minhee@dahlia.kr>
>>>>>
>>>>>> Hi Johnny,
>>>>>>
>>>>>> You can change this using Image.type property.  I just wrote docs
>>>>>> about this:
>>>>>>
>>>>>>   http://docs.wand-py.org/en/latest/guide/colorspace.html
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> Hong Minhee
>>>>>>
>>>>>> On Jan 31, 2013, at 1:27 AM, "Johnny W. Santos" <
>>>>>> johnny.w.santos@gmail.com> wrote:
>>>>>>
>>>>>> > Hello Everybody.
>>>>>> >
>>>>>> > I need to set colorspace as RGB on some JPG that i  converted from
>>>>>> a PDF.
>>>>>> >
>>>>>> > How can i do this?
>>>>>> >
>>>>>> > --
>>>>>> > Johnny W. dos Santos
>>>>>> >
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Johnny W. dos Santos
>>>>> <https://www.facebook.com/johnny.welll> <https://twitter.com/#!/OSrJota>
>>>>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Johnny W. dos Santos
>>>> <https://www.facebook.com/johnny.welll> <https://twitter.com/#!/OSrJota>
>>>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>>>
>>>
>>>
>>>
>>> --
>>> Johnny W. dos Santos
>>> <https://www.facebook.com/johnny.welll> <https://twitter.com/#!/OSrJota>
>>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>>
>>
>>
>>
>> --
>> Johnny W. dos Santos
>> <https://www.facebook.com/johnny.welll>  <https://twitter.com/#!/OSrJota>
>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>
>
>
>
> --
> Johnny W. dos Santos
> <https://www.facebook.com/johnny.welll>  
<https://twitter.com/#!/OSrJota> 
<http://br.linkedin.com/pub/johnny-santos/32/386/381>
>



-- 
Johnny W. dos Santos
<https://www.facebook.com/johnny.welll>
<https://twitter.com/#!/OSrJota>
<http://br.linkedin.com/pub/johnny-santos/32/386/381>

Re: [wand] How to set colorspace with Wand?

From:
Johnny W. Santos
Date:
2013-02-05 @ 11:08
Sorry i forgot the link.

http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=22708


2013/2/5 Johnny W. Santos <johnny.w.santos@gmail.com>

> here's my post in IM forum about that case, until now i can't solve this.
>
> Anyone has an ideia?
>
>
> 2013/2/4 Johnny W. Santos <johnny.w.santos@gmail.com>
>
> Here are the samples from my usage, and what occurs wrong
>>
>> PDF --> http://dl.dropbox.com/u/86138930/stock.pdf
>>
>> Whitish JPG --> http://dl.dropbox.com/u/86138930/stock.jpg (this is from
>> wand)
>>
>> Normal JPG --> http://dl.dropbox.com/u/86138930/stock_rgb.jpg (this is
>> from shell)
>>
>> When i convert from shell with "convert stock.pdf -colrspace RGB
>> stock.jpg" thats work fine.
>> But in Wand (http://pypi.python.org/pypi/Wand) i have to do like this
>> http://docs.wand-py.org/en/latest/guide/colorspace.html
>> but the resultant image isn't the same.
>>
>> Both images are the truecolor type in wand, but one is normal and other
>> whitish.
>>
>>
>> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>>
>>> Just another detail, when i do wand.type = 'truecolor' the resultante
>>> image becomes whitish, and doing in shell convert with -colorspace argument
>>> it stay normal.
>>>
>>> Have something i forgotten?
>>>
>>>
>>> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>>>
>>>> Sorry, i made a mistake. Indeed one of them is colorseparation type and
>>>> the other what works is truecolor type.
>>>>
>>>>
>>>> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>>>>
>>>>> Something isn't right.
>>>>> I have two JPG  converted from the same PDF, one of them i used just
>>>>> "convert file.pdf file.jpg" and don't worked, the other i used "convert
>>>>> file.pdf -colorspace RGB file.jpg and this worked.
>>>>>
>>>>> But in the interactive python shell when i open this objects with
>>>>> Image from wand.image they have the same type, 'colorseparation'.
>>>>>
>>>>> I don't know whats the diference.
>>>>>
>>>>>
>>>>> 2013/1/30 Johnny W. Santos <johnny.w.santos@gmail.com>
>>>>>
>>>>> Wow that's awesome, thanks.
>>>>>>
>>>>>>
>>>>>> 2013/1/30 Hong Minhee <minhee@dahlia.kr>
>>>>>>
>>>>>>> Hi Johnny,
>>>>>>>
>>>>>>> You can change this using Image.type property.  I just wrote docs
>>>>>>> about this:
>>>>>>>
>>>>>>>   http://docs.wand-py.org/en/latest/guide/colorspace.html
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Hong Minhee
>>>>>>>
>>>>>>> On Jan 31, 2013, at 1:27 AM, "Johnny W. Santos" <
>>>>>>> johnny.w.santos@gmail.com> wrote:
>>>>>>>
>>>>>>> > Hello Everybody.
>>>>>>> >
>>>>>>> > I need to set colorspace as RGB on some JPG that i  converted from
>>>>>>> a PDF.
>>>>>>> >
>>>>>>> > How can i do this?
>>>>>>> >
>>>>>>> > --
>>>>>>> > Johnny W. dos Santos
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Johnny W. dos Santos
>>>>>> <https://www.facebook.com/johnny.welll> <https://twitter.com/#!/OSrJota>
>>>>>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Johnny W. dos Santos
>>>>> <https://www.facebook.com/johnny.welll> <https://twitter.com/#!/OSrJota>
>>>>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Johnny W. dos Santos
>>>> <https://www.facebook.com/johnny.welll> <https://twitter.com/#!/OSrJota>
>>>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>>>
>>>
>>>
>>>
>>> --
>>> Johnny W. dos Santos
>>> <https://www.facebook.com/johnny.welll> <https://twitter.com/#!/OSrJota>
>>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>>
>>
>>
>>
>> --
>> Johnny W. dos Santos
>> <https://www.facebook.com/johnny.welll>  <https://twitter.com/#!/OSrJota>
>>   <http://br.linkedin.com/pub/johnny-santos/32/386/381>
>>
>
>
>
> --
> Johnny W. dos Santos
> <https://www.facebook.com/johnny.welll>  
<https://twitter.com/#!/OSrJota> 
<http://br.linkedin.com/pub/johnny-santos/32/386/381>
>



-- 
Johnny W. dos Santos
<https://www.facebook.com/johnny.welll>
<https://twitter.com/#!/OSrJota>
<http://br.linkedin.com/pub/johnny-santos/32/386/381>