Rank: Member
Groups: Member
Joined: 5/11/2005(UTC) Posts: 14
|
Is there a way of completely removing an ICC profile from an image? I know how to add on and how to extract profiles, but not how to delete them...
Thanks!
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
If you set the empty string to the DataProfile property, color profile will not be saved when the SaveToFile method will be called.
Hope this helps.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Andrew, when I use: Code:<!-- METADATA TYPE="typelib" UUID="{3CE48541-DE7A-4909-9314-9D0ED0D1CA5A}"-->
<%
Option Explicit
Dim objBitmap
'Create Bitmap object
Set objBitmap = Server.CreateObject("GraphicsMill.Bitmap")
'Enable color management
objBitmap.Data.ColorManagement.IsEnabled = False
'Load RGB image without embedded ICC profile from file
objBitmap.LoadFromFile Server.MapPath("IMG_0001.jpg")
'Assign current sRGB profile
objBitmap.Data.ColorManagement.DataProfile = ""
'Save to Response stream
'objBitmap.SaveToStream Response
%>
I receive: Code:Error Type:
GraphicsMill.Bitmap.2.0 (0xFFFFEFFD)
Property DataProfile cannot be retrieved. Unable to open '' color profile.
/colorprofile.asp, line 16
Please help. Edited by user Thursday, December 20, 2007 4:33:23 PM(UTC)
| Reason: Not specified |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/11/2005(UTC) Posts: 14
|
Great! This works! Thanks!!
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.