![]() ![]() And we can retain the behavior that any call to withMetadata() causes sharp to embed the output profile in the output image. We can further let sharp use the default sRGB and CMYK profiles to perform sRGB/CMYK colorspace conversions when no profiles are specified, and we would otherwise get the "no route" error from vips. What if we were to modify the proposed withMetadata() API to include a specific inputProfile and outputProfile option, to be used in any requested colorspace conversion that sharp may need to handle? If inputProfile is left out, we first check for embedded profiles, then use the default sRGB profile. I think it would require the use of another library. I don't see a workable way to do this with vips. It sounds as if, first the image is converted to CMYK somehow, and then the profile is appended as a binary blob without much regard to its content. However, in looking at implementing this now with the API you laid out above, you specify that "no colorspace conversion" is to be done with the profile argument to withMetadata(). My intention with withIcc() was to be able to provide the ICC profile that should be used in the output colorspace conversion. What motivated me to open #550 was the exact error noted in #584. I'm taking a look at this again after a long break. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |