Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
After PsdProcessor Render,How to Save PSD file?
Rank: Newbie
Groups: Guest
Joined: 4/25/2021(UTC) Posts: 2
|
var psdReader = new PsdReader(@"../../../../_Input/test.psd");
var targetFrame = GetSmartFrameGraphicsContainer(psdReader, psdProcessor);
psdProcessor.Render(psdReader, targetFrame);
// then how to save effectived psd file???
|
|
|
|
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)
|
Originally Posted by: abelwung var psdReader = new PsdReader(@"../../../../_Input/test.psd");
var targetFrame = GetSmartFrameGraphicsContainer(psdReader, psdProcessor);
psdProcessor.Render(psdReader, targetFrame);
// then how to save effectived psd file??? You can save the rendered PSD file directly to the file. Here is a code sample: https://www.graphicsmill...otoshop/render-templates |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 4/25/2021(UTC) Posts: 2
|
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 5/5/2021(UTC) Posts: 3
|
private static void RenderMugPreview() { var psdProcessor = new PsdProcessor();
psdProcessor.FrameCallback = (processor, frame) => { if (frame.Type != FrameType.SmartObject)
return processor.ProcessFrame(frame);
var smartFrame = (PsdSmartFrame)frame;
Console.WriteLine(frame.Type);
return smartFrame.ToGraphicsContainer(ImageReader.Create(@"../../../../_Input/33333.jpg"), ResizeMode.Fit); }; psdProcessor.Render(@"../../../../_Input/name2.psd", @"../../../../_Output/RenderMugPreview.png"); } }
this is the demo about the official markcup when i change the psd file more then 32MB report< Aurigma.GraphicsMill.OutOfMemoryException:“Unable to commit memory for this operation.”> has the psd file limit the size ?
|
|
|
|
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)
|
Please submit a case and attach the PSD file you experience the problem. |
Best regards, Fedor Skvortsov
|
|
|
|
Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
After PsdProcessor Render,How to Save PSD file?
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.