Hi,

This is a mess and should be cleaned up. I'm trying to do so in 2.0

There is a story behind this function. Many time ago, a profile vendor 
contacted
me about some profiles, presumably generated by lcms, that were just copies
 of
the profiles the vendor was selling, but with copyright removed and differe
nt
description. After some analysis, we found somebody was using lcms to do
unauthorized copies. LUT tables were exactly the same. Those were fine-tune
d
camera profiles, very valuable.

So, I tried to stop all this by preventing profile edition: that is, you co
uld
create brand new profiles, but not replace tags of existing profiles. That 
was
on lcms-1.15, if I recall correctly.

But obviously this approach makes no sense, and if anybody wants to do such
things they would do anyway, with or without lcms, so in 1.17 and 1.18 this
functionality is restored and you can edit profiles by just opening a profi
le,
adding the tags you want to change and then saving the profile.

So, the offending underscore "_" will be dropped in lcms 2.0 and 
cmsSaveProfile
will be part of "normal" API, but I need the major version bump to do so.


Regards
Marti.

Quoting "Guy K. Kloss" <g.kl...@massey.ac.nz>:

> According to the documentation _cmsSaveProfile() is deprecated and 
> supposed to
> be superseded by cmsOpenProfileFromFile() with a "w" as access mode inste
ad.
>
> So, how would one then write a brand new profile to disk that has 
> been created
> in memory? As cmsOpenProfileFromFile() returns a handle to an opened prof
ile,
> that seems like it creates a big problem for writing new profiles.
>
> And do I guess correctly, that when opening a profile with writing 
> capability,
> making modifications, and then closing it, that the modified profile will
 be
> written back to disk to the same/original file?
>
> A bit confused in trying to clean up deprecated functions,
>
> Guy
>
> --
> Guy K. Kloss
> Institute of Information and Mathematical Sciences
> Te Kura Pūtaiao o Mōhiohio me Pāngarau
> Room 2.63, Quad Block A Building
> Massey University, Auckland, Albany
> Private Bag 102 904, North Shore Mail Centre
> voice: +64 9 414-0800 ext. 9585   fax: +64 9 441-8181
> eMail: g.kl...@massey.ac.nz  http://iims.massey.ac.nz
>
>
> -------------------------------------------------------------------------
-----
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Lcms-user mailing list
> Lcms-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lcms-user
>



------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to