hi there,
I already try as your instruction but it is till 72 in
the result CMYK image.
I reviewed the jpeg_copy_critical_parameters() method
and can see this sensitive code
if (srcinfo->saw_JFIF_marker) {
if (srcinfo->JFIF_major_version == 1) {
dstinfo->JFIF_major_version =
srcinfo->JFIF_major_version;
dstinfo->JFIF_minor_version =
srcinfo->JFIF_minor_version;
}
dstinfo->density_unit = srcinfo->density_unit;
dstinfo->X_density = srcinfo->X_density;
dstinfo->Y_density = srcinfo->Y_density;
}
It seems that I need to set srcinfo->saw_JFIF_marker
value
but how can i do that??
Am i right or any other comment
thank for your help so far!!!
Dang Trong Hop
p/s:http://studio.imagemagick.org/pipermail/magick-bugs/2003-June/001336.html
I found a link about this problem on web..it seems the
problem is aware by community.
Best regards,
Dang Trong Hop
--- robert bergs <[EMAIL PROTECTED]> wrote:
> Hi,
>
> OK, it proved a little easier than I thought. All
> you need to do is apply this
> patch to add three lines to the jpegicc.c file in
> the jpegicc directory:
>
> @@ -446,8 +446,11 @@
> JSAMPROW ScanLineIn;
> JSAMPROW ScanLineOut;
>
> -
> -
> + //Preserve resolution values from the original
> +
> Compressor.density_unit=Decompressor.density_unit;
> + Compressor.X_density=Decompressor.X_density;
> + Compressor.Y_density=Decompressor.Y_density;
> +
> jpeg_start_decompress(&Decompressor);
> jpeg_start_compress(&Compressor, TRUE);
>
>
> This reads the resolution values from the
> Decompression object into the
> Compression object, thus preserving them. Recompile
> jpegicc and you should be OK!
>
> Sensibly, the code calls
> jpeg_copy_critical_parameters() to copy info from
> the
> Decompresion to the Compression objects.
> Unfortunately this does not copy the
> resolution information. (A bug? Feature?) It gets
> set to 72 dpi by default.
> According to Bob, we are not the first people to get
> caught out by this...
>
> This patch is based on lcms1-11. I have run it on a
> single test image under Free
> BSD but I cannot see why it should not work
> everywhere.
>
> Hope this helps!
>
> Rob.
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Lcms-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lcms-user