This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
abelwung  
#1 Posted : Sunday, April 25, 2021 10:16:25 PM(UTC)
abelwung

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???
Fedor  
#2 Posted : Monday, April 26, 2021 12:06:05 AM(UTC)
Fedor

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 Go to Quoted Post
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
abelwung  
#3 Posted : Monday, April 26, 2021 12:30:00 AM(UTC)
abelwung

Rank: Newbie

Groups: Guest
Joined: 4/25/2021(UTC)
Posts: 2

Ok, thanks very much
psrequest  
#4 Posted : Thursday, May 6, 2021 4:08:29 AM(UTC)
psrequest

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 ?
Fedor  
#5 Posted : Thursday, May 6, 2021 4:20:46 AM(UTC)
Fedor

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
Users browsing this topic
Guest
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.