On 26 December 2012 11:01, Richard Hughes <hughsi...@gmail.com> wrote:
> LCMS error 8: Unsupported parametric curve
> LCMS error 7: Couldn't write type 'para'
> LCMS error 8: Unsupported parametric curve
> LCMS error 7: Couldn't write type 'para'

So I poked a bit more at this. Type_ParametricCurve_Write in
src/cmstypes.c is unable to write the curve to the tag:

    if (typen > 5) {
        cmsSignalError(self->ContextID, cmsERROR_UNKNOWN_EXTENSION,
"Unsupported parametric curve");
        return FALSE;
    }

This is because we're trying to write a ICCv4
cmsSigParametricCurveType when it's a custom plugin type that should
be written as a table-based cmsSigCurveType.

I've attached a patch which fixes the issue for me. I don't think it's
possible for a plugin to create a new cmsSigParametricCurveType
without this patch applied. Please review. Thanks,

Richard

Attachment: 0002-Do-not-attempt-to-write-non-ICC-parametric-curve-typ.patch
Description: Binary data

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to