kashifulhaque / product-mockup-node-python

Create near perfect product mockups using ImageMagick, Node.js and Python
https://ifkash.hashnode.dev/imagemagick-product-mockups
26 stars 7 forks source link

Dark colors being distorted #7

Open faiq-fabtechsol opened 8 months ago

faiq-fabtechsol commented 8 months ago

Hi Brother, thanks for the repo. I am using your repository in one of my projects, For light colors pattern is being transferred quite well but for dark colors color of object is being blurred a little, can you please tell how to solve this issue I have attached one of images that I am experimented on. here is the input image template here is the mask of input image mask here is the style image art11

and here is the output of this image. art11

here you can see texture is not being transfered correctly. I want output like this. desired_output thanks in advance.

kashifulhaque commented 8 months ago

afaik, ImageMagick expects the mask to be white in colour with transparent background. Can you try this after changing mask colour to white.

Also, you can try changing parameters like scale in create_swatch_tile.py to make the tiling more/less dense.

Lastly, you can also try changing brightness delta here and in other similar scripts to adjust your output.

It is kind of difficult to create one script that works for everyone, so you just have to fiddle around with the parameters.

faiq-fabtechsol commented 8 months ago

@kashifulhaque thanks for you answer after changing the mask to white and decreasing the tiling does some work for me but still output is not as good as it should be. I have also tried with the reshaping the swatches to the size almost equal to the size of object within image but still output is not as accurate. Now my output is output

you can see here that full pattern is still not being transferred to the output image.

faiq-fabtechsol commented 8 months ago

also color of output image is little dull as compared to the swatch