Home
TeamSite
MediaBin - PSD Layer Replacer
Selva_Subbu
We are trying to add a new retrival task. The task will replace the layers of Photoshop-PSD file with the different JPEG image.For this i am using "PSD Layer Replacer" Transformer.
How can i replace the layers(for eg 4 layer)of PSD file with JEPG(4 different image) images simentaneously. Our requirement is client would select four JPEG files for download.This would replace four layers of the PSD file through the retrival task.
Is this possible, if so what approach should follow.
Mediabin version : 4.6 OS : windows 2000 server Sp4.
Thanks & Regards
Selvaraj S
Find more posts tagged with
Comments
lyman
The short answer is that the PSDLayerReplacer can only replace a single layer. This is primarily because the original use case for which it was designed required the ability to transform the layer to be replaced before replacement.
However, if the layers you are replacing are from a fixed finite subset, you may be able to get what you are looking forward instead by using the Layer Selector Primitive. You might want to get some easy UI customizations and then use runtime parameters. If that is your use case I am sure that people can walk you through the required steps on the forum.
Cheers,
Lyman Hurd
nanna
I'm facing a similar situation like the one seen b4...
What we're trying to do is- We've 4 single layer .PSD files. Also we've one PSD file with 4 layers in it (all the file are in the MB repository and in the same container). Our requirement is to replace each layer of the multilayered PSD file with that of the single layer files. But the constraint we're facing is to do all this in a single retrieval task. we've tried the Layer Replacer Primitive but it'll work for replacing only a single layer of a
PSD file. We're able to do the job if we run the retrieval task thrice repeatedly by giving the output of the previous task as the input for the next and so on(The first input will be the multilayered file without any replacements)... This takes lot of User intervention.
Is there anyother way to do it in a single shot...
Looking forward for your replies...
cheers...
Using MB 4.6
OS: Win 2003
lyman
How many potential layers are you replacing these layers with? If the choice of jpeg is from a finite subset, the LayerSelector may work.
Cheers,
Lyman Hurd
nanna
Our requirement is to replace 4 layers only. What we've planned to do is, we'll select 4 Jpegs inside the Webclient and click the download command. we'll select one retrieval task where it should ask for the which Jpeg file needs to be replaced in which layer of the PSD file. The PSd file can be set as default or as the background file in the task itself. we won't be specifying it in the runtime. Our output file should have all these 4 images placed inside that PSD file.
but the constraint is, it should be done in a single task.
My question is whether will this be possible ? if yes can you share your inputs for the same.
Cheers...
lyman
I am afraid that a single task will not accomplish this. One could write a script to do it that would effectively run four jobs... Linked hot folders might be another possibility.
Cheers,
Lyman Hurd
nanna
Thanks for your updates.
Selva_Subbu
Hi,
We have implemented this requirement in the single task. I have used PSD Layer Replacer Followed by Layer selector and Flatten.
In my PSD file 4 layers is present. Based on the user selection we can hide or show in the layer present in the PSD file.
Primitives which is used in this task:
1. PSD Layer Replacer
2. Layer Selector
3 Flatten
4. Layer Selector
5. Flatten
6. Text Replacer
7. Flatten
8. Text Replacer
9. Flatten
10 Finally JPEG Converter.
Finally I will get the JPEG with all the imges which user selects.
Lyman : Please confirm me whether i went correct approach.
Thanks
Selva
linechart.png
lyman
It is unclear whether you would need more than one flattener. I am afraid I am having difficulty visualizing the workflow here (although I am pleased if you got what you need working!).
To clarify for those reading the thread, the PSD layer replacer acts on a single layer image and takes a multilayer PSD as its parameter. The output is the result of inserting the single layer image into the PSD in a spot indicated by another parameter.
However, as you have apparently discovered, the Text Layer Adder does work incrementally more in the fashion that you described.
I would experiment to see if you can get away with fewer flatteners! You may also be able to simplify by using the AGS Encoder as a last step because it is possible that some of the previous primitives can be combined with the JPEG encoder.
Let me know if it works out for you.
Cheers,
Lyman Hurd