Rank: Member
Groups: Guest
Joined: 5/22/2018(UTC) Posts: 11
Thanks: 2 times
|
rendered out put image looks poor in quality compared to original image.
|
|
|
|
Rank: Member
Groups: Guest
Joined: 5/22/2018(UTC) Posts: 11
Thanks: 2 times
|
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/4/2017(UTC) Posts: 43
Was thanked: 12 time(s) in 12 post(s)
|
Could you please post your code and original PSD image?
Regards, Andrew
|
|
|
|
Rank: Member
Groups: Guest
Joined: 5/22/2018(UTC) Posts: 11
Thanks: 2 times
|
Code: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);
***PSD 35.rar (3,826kb) downloaded 3 time(s).Edited by moderator Wednesday, May 23, 2018 12:58:57 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/4/2017(UTC) Posts: 43
Was thanked: 12 time(s) in 12 post(s)
|
Few things here should be fixed to get correct result: 1) Remove layers called "texture" in "namedrop1" and "namedrop2" layer groups from PSD. 2) Set "Vertically scale" and "Horizontally scale" settings of all text objects to 100% (as on screenshot). This feature is not supported now. To scale some text please use Move Tool in Photoshop, then press Ctrl+T and scale object as required by design. 3) Some of the text objects are using All Caps font setting. It doesn't work correctly with the psdProcessor.StringCallback currently, which looks like a bug and should be fixed in further releases. As a workaround you can: - capitalize required text manually - or rasterize text layers which are not supposed to be personalized - or use this code (just 3 lines of code is added here to handle AllCap): Code://Set the callback for rendering text frames.
psdProcessor.StringCallback = (processor, textFrame) =>
{
if (updatedLayers.ContainsKey(textFrame.Name))
{
object placeholder = updatedLayers[textFrame.Name];
return placeholder.ToString();
}
if (textFrame.Caps == FontCaps.AllCap)
{
return textFrame.Text.ToUpper();
}
return textFrame.Text;
};
Here is also result of the PSD rendering after applying of all fixes: Regards, Andrew Edited by user Wednesday, May 23, 2018 1:39:10 AM(UTC)
| Reason: Not specified
|
1 user thanked Andrey Semenov for this useful post.
|
|
|
Rank: Member
Groups: Guest
Joined: 5/22/2018(UTC) Posts: 11
Thanks: 2 times
|
yeah, it's working fine now...
thank you...
|
|
|
|
Rank: Member
Groups: Guest
Joined: 5/22/2018(UTC) Posts: 11
Thanks: 2 times
|
As i implemented same thing with some other images and i observed that the text alignment going wrong and some designing styles of text has gone... please take a look at below images original image: 36.jpg (3,918kb) downloaded 5 time(s).output image:
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/4/2017(UTC) Posts: 43
Was thanked: 12 time(s) in 12 post(s)
|
Please share PSD template so we can investigate this also.
|
|
|
|
Rank: Member
Groups: Guest
Joined: 5/22/2018(UTC) Posts: 11
Thanks: 2 times
|
34.rar (2,615kb) downloaded 6 time(s).As i couldn't upload the psd template of previous image as it is of more then 50MB, here am forwarding some other psd template for which am facing the same issue... Regards, Sateesh
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/4/2017(UTC) Posts: 43
Was thanked: 12 time(s) in 12 post(s)
|
Sateesh, 1) Special design styles of the fonts (e.g. Angelline font has special "a" characters if it is placed in the beginning of the line) are not supported unfortunately. Please rasterize such text objects if possible. 2) I have done testing and found that text alignment becomes wrong because of custom individual kerning of some characters. It is not supported now, but we plan to add it in further releases. For now, please remove all individual kerning settings (you can use tracking instead) or rasterize text objects where custom kerning is used. Regards, Andrew Edited by user Friday, May 25, 2018 2:33:56 AM(UTC)
| Reason: Not specified
|
1 user thanked Andrey Semenov for this useful post.
|
|
|
Rank: Newbie
Groups: Guest
Joined: 4/27/2018(UTC) Posts: 5
|
Hello Andrey,
We have a similar requirement, that is to personalize the text layers as per our customers input. I have a couple of other, but related questions. 1. Can you use text that the opacity level has been changed? 2. Can you use text that has layer FX (drop shadow, inner shadow, etc…)? 3. Is the above process what you recommend, or do you have any other recommended solutions?
Thank you in advance,
Phani
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 4/27/2018(UTC) Posts: 5
|
Hello Andrey or any other experts, can you please give me your 2 cents on the above questions.
Thanks and have a great day,
Phani
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/4/2017(UTC) Posts: 43
Was thanked: 12 time(s) in 12 post(s)
|
Hello Phani,
1. Opacity level for text layers is supported. 2. Supported effects for text layers are Drop Shadow and Stroke. All other effects are ignored during rendering. 3. Could you please describe this question in a bit more details (if it is still actual)?
Regards, Andrew
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 4/27/2018(UTC) Posts: 5
|
Hello Andrew, We are working with a file but unfortunately the drop shadow and the stroke effects are not rendering. Edited by user Wednesday, June 13, 2018 12:25:59 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 4/27/2018(UTC) Posts: 5
|
I am trying to upload the PSD file but could not. So below is the link to download the PSD file. Zip with PSD fileI would appreciate if you could help us figure a way to render the "drop" and "stroke" effects on the created JPEG file. Thank you, Phani
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/4/2017(UTC) Posts: 43
Was thanked: 12 time(s) in 12 post(s)
|
Dear Phani,
I have tested your template carefully and found a bug with rendering of Stroke and Drop Shadow effects, which appears with some conditions. I will discuss this with development team and hope that this can be addressed soon.
Regards, Andrew
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 4/27/2018(UTC) Posts: 5
|
Thanks Andrew. Any idea how soon you can get this issue fixed. I hope this can be fixed soon since we designed a bunch of items based on your original post which said the stroke and drop shadow effects can be rendered. We are planning a demo of our product after integrating this with our web site by end of June.
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 7/4/2017(UTC) Posts: 43
Was thanked: 12 time(s) in 12 post(s)
|
I'm sorry for that. Actually, stroke and drop shadow effects are working, but under some conditions (e.g. small resolution of the PSD template) rendering goes different in comparison with original Photoshop file. I have reported this to development team and will back to you with decision in the beginning of next week. In the meanwhile, I have played around with different text settings and got result similar to what you want to get: List of changes I've done to get this result: 1) Removed Stroke effect and added Faux Bold option to the text. 2) Changed settings of Drop Shadow effect to 4px for Distance and 2px for Size. 3) Also set color mode to RGB. You can download updated PSD by this link. Edited by user Friday, June 15, 2018 2:09:28 AM(UTC)
| Reason: Not specified
|
|
|
|
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)
|
Currently we don't support the spread parameter of shadow. Even though you can try to get the similar result without using the spread parameter. TextEffectsBug_edited.zip (95kb) downloaded 4 time(s).Edited by user Friday, June 15, 2018 2:25:06 AM(UTC)
| Reason: Not specified |
Best regards, Fedor Skvortsov
|
|
|
|
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.