Search found 15 matches

by angi_sfj
2019-04-30T06:11:22-07:00
Forum: Developers
Topic: Resolution Unit
Replies: 17
Views: 26946

Re: Resolution Unit

ok now it works.
thankyou all
by angi_sfj
2019-04-30T05:33:02-07:00
Forum: Developers
Topic: Resolution Unit
Replies: 17
Views: 26946

Re: Resolution Unit

well, my first code was:

Code: Select all

                //image.AddProfile(ColorProfile.SRGB);
                image.AddProfile(ColorProfile.USWebCoatedSWOP);
with first row uncommented.
now i retry, maybe there was something else wrong.
or maybe the conversion has to be done in another way??
by angi_sfj
2019-04-30T04:42:10-07:00
Forum: Developers
Topic: Resolution Unit
Replies: 17
Views: 26946

Re: Resolution Unit

hi, here is the result Image: x.jpg Format: JPEG (Joint Photographic Experts Group JFIF format) Mime type: image/jpeg Class: DirectClass Geometry: 590x1712+0+0 Resolution: 150x150 Print size: 3.93333x11.4133 Units: PixelsPerInch Colorspace: sRGB Type: TrueColor Base type: Undefined Endianess: Undefi...
by angi_sfj
2019-04-30T03:24:40-07:00
Forum: Developers
Topic: Resolution Unit
Replies: 17
Views: 26946

Re: Resolution Unit

yes, is converted to rgb. how to attach an embedded profile? in another discussion i see that Notice in the linked example they're converting from a standard CMYK, which means you don't need to load a custom icc profile - the standard CMYK is already in Magick.net, as ColorProfile.USWebCoatedSWOP. i...
by angi_sfj
2019-04-30T02:40:47-07:00
Forum: Developers
Topic: Resolution Unit
Replies: 17
Views: 26946

Re: Resolution Unit

angi_sfj wrote: 2019-04-29T23:32:05-07:00 another question..
opening it with photoshop color profile results RGB, whili with exiftool seems to bo CMYK .
any ideas?
thankyou
it give error in opening embedded icc profile .
by angi_sfj
2019-04-29T23:32:05-07:00
Forum: Developers
Topic: Resolution Unit
Replies: 17
Views: 26946

Re: Resolution Unit

another question..
opening it with photoshop color profile results RGB, whili with exiftool seems to bo CMYK .
any ideas?
thankyou
by angi_sfj
2019-04-29T12:18:21-07:00
Forum: Developers
Topic: Resolution Unit
Replies: 17
Views: 26946

Re: Resolution Unit

dlemstra wrote: 2019-04-29T12:11:25-07:00 You should set `image.Density` instead of `image.Settings.Density` to change the density of an image.
Y Rock!
many thanks

it work as expected

bye
by angi_sfj
2019-04-29T12:06:13-07:00
Forum: Developers
Topic: Resolution Unit
Replies: 17
Views: 26946

Re: Resolution Unit

and for .NET api?
by angi_sfj
2019-04-28T14:23:44-07:00
Forum: Developers
Topic: density unit output
Replies: 7
Views: 11434

Re: density unit output

you're right, i make a shortcut in description. My original image is jpg. in my program to elaborate it I create a bitmap .net object. if i save it with .net framework methods i get resolution in ppi if i save it with imagemagick i get resolution in ppcm. is it possibile to have an output jpg signed...
by angi_sfj
2019-04-28T14:19:36-07:00
Forum: Developers
Topic: Resolution Unit
Replies: 17
Views: 26946

Re: Resolution Unit

thanks for reply, my output is in jpg but i get a pixel for centimeter resolution. here is my code, what's wrong? using (MagickImage image = new MagickImage(bmp)) { image.Settings.Density = new Density(nBmpPrm.dpi, nBmpPrm.dpi, DensityUnit.PixelsPerInch); image.AddProfile(ColorProfile.CoatedFOGRA39)...
by angi_sfj
2019-04-24T07:09:21-07:00
Forum: Developers
Topic: Resolution Unit
Replies: 17
Views: 26946

Resolution Unit

Hi all, is it possible to get an output file with resolution unit in inch? 'cause if i set DensityUnit.PixelsPerInch looking with exiftool results in a Resolution Unit : cm. I know the size is the same, but i need that reading metadata it says inch. Is it possibile to make it sign as Resolution Unit...
by angi_sfj
2019-04-18T08:57:40-07:00
Forum: Developers
Topic: density unit output
Replies: 7
Views: 11434

Re: density unit output

grat thank you.
for color space it's ok.
but still here the file worked with

Code: Select all

DensityUnit.PixelsPerInch
results in a Resolution Unit : cm.
is it possibile to make it sign as Resolution Unit : inches as the original image is?
thankyou
by angi_sfj
2019-04-18T07:48:25-07:00
Forum: Developers
Topic: density unit output
Replies: 7
Views: 11434

Re: density unit output

thanks for your reply.

color space results sRGB, not cmyk

and i'd archive resolution units pixels/mm, as if i open other random image that says 150 × 150 ppi.
by angi_sfj
2019-04-18T03:11:39-07:00
Forum: Developers
Topic: density unit output
Replies: 7
Views: 11434

Re: density unit output

the same if i remove
image.AddProfile(ColorProfile.SRGB);
by angi_sfj
2019-04-18T03:11:10-07:00
Forum: Developers
Topic: density unit output
Replies: 7
Views: 11434

density unit output

hi, i'm try to archive converting a bitmap to jpg cmyk ppi. i set using (MagickImage image = new MagickImage(bmp)) { image.ColorAlpha(new MagickColor("#FFF")); // You only need this when your image contains transparency. image.Settings.Density = new Density(nBmpPrm.dpi, nBmpPrm.dpi, Densit...