Rank: Advanced Member
Groups: Guest
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 9 time(s).
|
|
|
|
Rank: Advanced Member
Groups: Guest
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
|
|
|
|
Rank: Advanced Member
Groups: Guest
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
|
|
|
|
Rank: Newbie
Groups: Guest
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 8 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 7 years ago
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
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.
|
|
|
|
Rank: Newbie
Groups: Guest
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.
|
|
|
|
Rank: Advanced Member
Groups: Guest
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.
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 4/24/2018(UTC) Posts: 3
|
 var 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); }  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 7 years ago
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
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
|
|
|
|
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.