-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If an image is small and the other image is big, the background color behind small image is not getting set to white or transparent. #1
Comments
Thank you for reporting this! Would you mind giving some code example for this issue? So that I can reproduce the issue to see what went wrong. Also, if available, can I see what images you used for merging? |
@preco21 Hi also noted this Issue, if you copy the merged image, with one image small and other large, and then paste it o Microsoft word or Microsoft powerpoint the left out area appears black. I am attaching my code and the images screenshots. I have to correct it in my code so please try to help asap. Thanks. |
Sorry for the late response and thank you for providing an example. Not sure if this issue could be on upstream since |
Seems to be these points are unrelated. |
I just tried to reproduce this issue with both Tested with this code: import mergeImg from 'merge-img';
(async () => {
const img = await mergeImg([
'images/a.png',
'images/b.jpg',
], {offset: 10});
img.write('test.png');
})(); @abdulwajid725 @sanidhyatandon I'm wonder if you tried to use this module on browser environment or Electron. I haven't considered about that use case. |
@preco21 If for example, image B is smaller than image A, then if I use color option as in readme, then when I copy the merged resultant image and paste it on Microsoft Word or Microsoft Powerpoint, the extra left-out area appears black. I'll show you with an example. REFER TO THE LINK ABOVE, I have sent the faulty image as on MSWORD |
Hmm, very strange to me. Can you file the image here directly instead of MS Word? I'm not sure if this is MS Word specific issue. And also, again, please let me know what platform (browser, node or Electron) you are currently working on. |
I am using nwj, https://nwjs.io/ |
@preco I didn't use the color option in the readme for above images, it fills with white. |
@sanidhyatandon Yep it seems so. I cannot see background color for your given image. The background of the image is fully transparent. |
@abdulwajid725 Are you still having issue now? |
Hi, I'm having a similar issue: I'm also merging images varying in sizes. The I managed to work around this by stretching my own images before merging them, but if this issue could be updated in the coming version it would be great! Nevertheless, this is a wonderful & very useful package. Thanks a lot for creating it :) |
No description provided.
The text was updated successfully, but these errors were encountered: