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

Notification

Icon
Error

Options
Go to last post Go to first unread
Sateesh.CIS  
#1 Posted : Tuesday, May 22, 2018 3:53:50 AM(UTC)
Sateesh.CIS

Rank: Member

Groups: Member
Joined: 5/22/2018(UTC)
Posts: 11

Thanks: 2 times
rendered out put image looks poor in quality compared to original image.
Sateesh.CIS  
#2 Posted : Tuesday, May 22, 2018 3:59:46 AM(UTC)
Sateesh.CIS

Rank: Member

Groups: Member
Joined: 5/22/2018(UTC)
Posts: 11

Thanks: 2 times
4de612ecd84d42b4ac51c6b7699b454b.jpg35.jpg
Andrey Semenov  
#3 Posted : Tuesday, May 22, 2018 5:13:53 AM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member, Administration
Joined: 7/4/2017(UTC)
Posts: 33

Was thanked: 10 time(s) in 10 post(s)
Could you please post your code and original PSD image?

Regards,
Andrew
Sateesh.CIS  
#4 Posted : Tuesday, May 22, 2018 5:40:59 AM(UTC)
Sateesh.CIS

Rank: Member

Groups: Member
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 1 time(s).

Edited by moderator Wednesday, May 23, 2018 12:58:57 AM(UTC)  | Reason: Not specified

Andrey Semenov  
#5 Posted : Wednesday, May 23, 2018 12:56:01 AM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member, Administration
Joined: 7/4/2017(UTC)
Posts: 33

Was thanked: 10 time(s) in 10 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.
text-scale.png

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();
    }result.jpgtext-scale.png

    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:
result.jpg

Regards,
Andrew

Edited by user Wednesday, May 23, 2018 1:39:10 AM(UTC)  | Reason: Not specified

thanks 1 user thanked Andrey Semenov for this useful post.
Sateesh.CIS on 5/23/2018(UTC)
Sateesh.CIS  
#6 Posted : Wednesday, May 23, 2018 2:42:29 AM(UTC)
Sateesh.CIS

Rank: Member

Groups: Member
Joined: 5/22/2018(UTC)
Posts: 11

Thanks: 2 times
yeah, it's working fine now...

thank you...
Sateesh.CIS  
#7 Posted : Wednesday, May 23, 2018 5:01:17 AM(UTC)
Sateesh.CIS

Rank: Member

Groups: Member
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 2 time(s).

output image:

Andrey Semenov  
#8 Posted : Wednesday, May 23, 2018 8:15:55 AM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member, Administration
Joined: 7/4/2017(UTC)
Posts: 33

Was thanked: 10 time(s) in 10 post(s)
Please share PSD template so we can investigate this also.
Sateesh.CIS  
#9 Posted : Wednesday, May 23, 2018 8:40:15 PM(UTC)
Sateesh.CIS

Rank: Member

Groups: Member
Joined: 5/22/2018(UTC)
Posts: 11

Thanks: 2 times
34.rar (2,615kb) downloaded 4 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
Andrey Semenov  
#10 Posted : Thursday, May 24, 2018 1:17:39 AM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member, Administration
Joined: 7/4/2017(UTC)
Posts: 33

Was thanked: 10 time(s) in 10 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

thanks 1 user thanked Andrey Semenov for this useful post.
Sateesh.CIS on 5/24/2018(UTC)
phani119  
#11 Posted : Thursday, May 24, 2018 5:57:05 AM(UTC)
phani119

Rank: Newbie

Groups: Member
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
phani119  
#12 Posted : Monday, May 28, 2018 7:20:20 AM(UTC)
phani119

Rank: Newbie

Groups: Member
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
Andrey Semenov  
#13 Posted : Tuesday, May 29, 2018 10:51:04 PM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member, Administration
Joined: 7/4/2017(UTC)
Posts: 33

Was thanked: 10 time(s) in 10 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
phani119  
#14 Posted : Wednesday, June 13, 2018 12:20:44 PM(UTC)
phani119

Rank: Newbie

Groups: Member
Joined: 4/27/2018(UTC)
Posts: 5

cb9bbbbdfc69410fa9d98b6e5792e69e.jpgHello 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

phani119  
#15 Posted : Wednesday, June 13, 2018 12:55:45 PM(UTC)
phani119

Rank: Newbie

Groups: Member
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 file

I 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
Andrey Semenov  
#16 Posted : Thursday, June 14, 2018 12:35:31 AM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member, Administration
Joined: 7/4/2017(UTC)
Posts: 33

Was thanked: 10 time(s) in 10 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
phani119  
#17 Posted : Thursday, June 14, 2018 5:44:23 AM(UTC)
phani119

Rank: Newbie

Groups: Member
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
Andrey Semenov  
#18 Posted : Friday, June 15, 2018 2:00:25 AM(UTC)
Andrey Semenov

Rank: Advanced Member

Groups: Member, Administration
Joined: 7/4/2017(UTC)
Posts: 33

Was thanked: 10 time(s) in 10 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:
original-updated.jpg

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

Fedor  
#19 Posted : Friday, June 15, 2018 2:24:04 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,559

Thanks: 5 times
Was thanked: 63 time(s) in 62 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.

spread.png

TextEffectsBug_edited.png

TextEffectsBug_edited.zip (95kb) downloaded 1 time(s).

Edited by user Friday, June 15, 2018 2:25:06 AM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
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.