Aurigma Forums
 » 
Graphics Mill
 » 
Discussions – Graphics Mill
 » 
LosslessJpegTransform will discard ICC Profile?
 
		
        
            
            
	
    
        
Rank: Advanced Member
  Groups: Guest
 Joined: 3/3/2008(UTC) Posts: 185
  Thanks: 8 times
  
 
     | 
	
    
        
            
	      
                Hi, We do have a code like this, and seems like the after do the LossLessJPEG transform, the ICC profile will be discard. Kindly confirm. Thanks !! Code:
                Aurigma.GraphicsMill.Codecs.LosslessJpegTransform losslessJpeg =
                    new Aurigma.GraphicsMill.Codecs.LosslessJpegTransform(fileName);
                String fileExt = System.IO.Path.GetExtension(fileName);
                String tmpFileName = fileName.Replace( fileExt, "_tmp" + fileExt);
                // EXIF
                if (Int32.Parse(losslessJpeg.Exif[Aurigma.GraphicsMill.Codecs.ExifDictionary.Orientation].ToString()) != 0)
                {
                    losslessJpeg.Exif[Aurigma.GraphicsMill.Codecs.ExifDictionary.Orientation] = 0; 
                    losslessJpeg.Write(tmpFileName);
                    losslessJpeg.Close();
                    losslessJpeg.Dispose();
                    if (System.IO.File.Exists(tmpFileName))
                    {
                        System.IO.File.Copy(tmpFileName, fileName, true);
                        System.IO.File.Delete(tmpFileName);
                    }
                }
                else
                {
                    losslessJpeg.Close();
                    losslessJpeg.Dispose();                    
                }
 
  
            
  
         
     | 
	
    | 
         
             
     | 
	
    
         
            
         
     | 
    | 
        
     | 
        
        
        
         
		   
        
            
            
	
    
        
Rank: Advanced Member
  Groups: Guest
 Joined: 9/19/2006(UTC) Posts: 505
  Was thanked: 41 time(s) in 41 post(s)
  
 
     | 
	
    
        
            
	      
                Hi,
  Thanks for a bug report. 
  Unfortunately there is no workaround but upcoming GM update is free of this issue.
     | 
Best regards, Eugene Kosmin The Aurigma Development Team 
            
  
         
     | 
	
    | 
         
             
     | 
	
    
         
            
         
     | 
    | 
        
     | 
        
        
        
    
		
        
            
            
	
    
        
Rank: Advanced Member
  Groups: Guest
 Joined: 3/3/2008(UTC) Posts: 185
  Thanks: 8 times
  
 
     | 
	
    
        
            
	      
                Hi, when can we expect the new release? :) Eugene Kosmin wrote:Hi,
  Thanks for a bug report. 
  Unfortunately there is no workaround but upcoming GM update is free of this issue.
    
            
  
         
     | 
	
    | 
         
             
     | 
	
    
         
            
         
     | 
    | 
        
     | 
        
        
        
         
		   
        
            
            
	
    
        
Rank: Advanced Member
  Groups: Guest
 Joined: 8/3/2003(UTC) Posts: 1,070
  Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
  
 
     | 
	
    
        
            
	      
                Hello,
  Graphics Mill 6 with this fix will be available in the next week.     | 
| 
     | 
	
    | 
         
             
     | 
	
    
         
            
         
     | 
    | 
        
     | 
        
        
        
    
Aurigma Forums
 » 
Graphics Mill
 » 
Discussions – Graphics Mill
 » 
LosslessJpegTransform will discard ICC Profile?
 
    
        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.