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

Notification

Icon
Error

Options
Go to last post Go to first unread
Nifty  
#1 Posted : Monday, February 26, 2018 1:26:46 PM(UTC)
Nifty

Rank: Advanced Member

Groups: Member
Joined: 10/12/2015(UTC)
Posts: 44

Our Photoshop files are rendered with different colors (other than specified in the psd file).

I've attached the psd file I'm using to test, and also the output from the code below:

Code:

var customResolver = new FontResolver(@"D:\Temp\PsdTests\FontCache");
customResolver.FontRegistry.FallbackFonts.Add("Arial");

var psdProcessor = new PsdProcessor(customResolver);
psdProcessor.Render(@"D:\Temp\colors.psd", @"D:\Temp\colors_output.jpg");

All the colors seem to be "faded", please let me know if there is something I an do to correct this.

colors.zip (6kb) downloaded 6 time(s).colors_output.jpg

Eugene Kosmin  
#2 Posted : Thursday, March 1, 2018 4:58:02 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hi,

Unfortunately, you can do nothing with it. Please check the fix in the upcoming release.

Best regards,

Eugene Kosmin

The Aurigma Development Team

Fedor  
#3 Posted : Wednesday, March 7, 2018 1:59:39 AM(UTC)
Fedor

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)
We released the version 9.3.19 where we addressed the problem.
Best regards,

Fedor Skvortsov

sandeep154  
#4 Posted : Monday, April 30, 2018 2:41:05 AM(UTC)
sandeep154

Rank: Newbie

Groups: Member
Joined: 4/24/2018(UTC)
Posts: 3

i m also facing the same issue while using the graphic miller tool to modify the .psd files.Here is my output file. output.rar (319kb) downloaded 5 time(s).

this is the code sample i have used.

var filePath = HttpContext.Current.Server.MapPath("~/Templates/" + req.ImageId + ".psd");

System.Collections.Hashtable updatedLayers = new System.Collections.Hashtable();

string newgd = Guid.NewGuid().ToString().Replace("-", "");

string output = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Output\" + newgd + ".jpg");

foreach (var item in req.TextList)

{

updatedLayers.Add(item.TextName, item.TextValue);

}

using (Aurigma.GraphicsMill.Bitmap bitmap = RasterizePsd(filePath, updatedLayers))

{

bitmap.Save(output);

}

Edited by user Monday, April 30, 2018 2:42:56 AM(UTC)  | Reason: Not specified

Nifty  
#5 Posted : Monday, April 30, 2018 8:09:58 AM(UTC)
Nifty

Rank: Advanced Member

Groups: Member
Joined: 10/12/2015(UTC)
Posts: 44

I solved this issue by changing the Mode in my Photoshop file. Image menu -> Mode -> RGB Color.

After changing the mode to RGB Color, the rendered image reflects the colors in the Photoshop file.

I hope this helps you.

sandeep154  
#6 Posted : Tuesday, May 1, 2018 9:13:28 PM(UTC)
sandeep154

Rank: Newbie

Groups: Member
Joined: 4/24/2018(UTC)
Posts: 3

actually i m converting psd file to jpg so rendered image is stored in jpg or png format.so i m viewing the output in default windows photo viewer.
Nifty  
#7 Posted : Wednesday, May 2, 2018 7:05:10 AM(UTC)
Nifty

Rank: Advanced Member

Groups: Member
Joined: 10/12/2015(UTC)
Posts: 44

I do something similar. Again, if you change the Mode of the PSD, the outputted jpg or png will have the correct colors.

Hopefully this helps.

sandeep154  
#8 Posted : Wednesday, May 2, 2018 9:29:52 PM(UTC)
sandeep154

Rank: Newbie

Groups: Member
Joined: 4/24/2018(UTC)
Posts: 3

3.jpgvar psdProcessor = new PsdProcessor(Path.GetTempPath());

//Set the callback for rendering text frames.

psdProcessor.StringCallback = (processor, textFrame) =>

{

if (updatedLayers.ContainsKey(textFrame.Name))

{

object placeholder = updatedLayers[textFrame.Name];

return placeholder.ToString();

}

return textFrame.Text;

};

//Set the callback for rendering image frames.

psdProcessor.FrameCallback = (processor, frame) =>

{

if ((frame.Type != FrameType.Raster) || (!updatedLayers.ContainsKey(frame.Name)))

return processor.ProcessFrame(frame);

return frame.ToGraphicsContainer(ImageReader.Create(updatedLayers[frame.Name].ToString()), ResizeMode.ImageFill);

};

psdProcessor.FrameCallback = (processor, frame) =>

{

return processor.ProcessFrame(frame);

};

psdProcessor.Render(filePath, output);

By using these code i m getting required result but in some files i m facing problems.i implemented your advice but no change.previously i m using below code,

//using (Aurigma.GraphicsMill.Bitmap bitmap = RasterizePsd(filePath, updatedLayers))

{

bitmap.Save(output);

}a4f525a2235449f290128962c3931b49.jpg

Only this image coming like this all other images are coming properly.but by using photoshop dll this image is coming properly.but the problem with photoshop is that u have to open photoshop in the background otherwise it will not work.for that reason i m using graphics mill.

Edited by user Wednesday, May 2, 2018 11:10:43 PM(UTC)  | Reason: Not specified

Eugene Kosmin  
#9 Posted : Sunday, May 6, 2018 7:04:48 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hi,

Could you post here the original PSD file?

Best regards,

Eugene Kosmin

The Aurigma Development Team

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.