Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
CatInaHat  
#1 Posted : Wednesday, May 17, 2006 11:30:07 PM(UTC)
CatInaHat

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!
Andrew  
#2 Posted : Thursday, May 18, 2006 7:00:45 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 866

Thanks: 2 times
Was thanked: 26 time(s) in 26 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.
Fedor  
#3 Posted : Thursday, May 18, 2006 9:56:35 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,537

Thanks: 4 times
Was thanked: 56 time(s) in 55 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
Andrew  
#4 Posted : Thursday, May 18, 2006 10:02:34 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 866

Thanks: 2 times
Was thanked: 26 time(s) in 26 post(s)
Updated DLLs should help.
CatInaHat  
#5 Posted : Monday, June 19, 2006 12:19:47 AM(UTC)
CatInaHat

Rank: Member

Groups: Member
Joined: 5/11/2005(UTC)
Posts: 14

Great! This works! Thanks!!
Users browsing this topic
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.