/    Sign up×
Community /Pin to ProfileBookmark

Question about image merging and saving.

Hello, so I wrote a code so that user can upload his photo and website puts, well let’s say like a watermark on it. I need to merge these 2 photos into 1 and save it in like BMP or JPGEG format. I just want to ask if it’s possible, and if it is, should I try to write a code myself or should I use some kind of converter in my website? Thank you for your answers.

to post a comment
Full-stack Developer

4 Comments(s)

Copy linkTweet thisAlerts:
@brad_jonesJan 22.2018 — Yes, it is possible to merge two images into one. If you aren't sure how to do it, then third party tools are likely the best way to go.

As a side note, if you are putting a copyright or other notice on someone else's image, you will want to make sure your site has a terms of use page that defines what you are doing and why you are doing it. Are you claiming rights to any images uploaded to your site? If not, then you'll need to be careful if you start changing images that belong to others.
Copy linkTweet thisAlerts:
@SliFaZauthorJan 23.2018 — Yes, it is possible to merge two images into one. If you aren't sure how to do it, then third party tools are likely the best way to go.

As a side note, if you are putting a copyright or other notice on someone else's image, you will want to make sure your site has a terms of use page that defines what you are doing and why you are doing it. Are you claiming rights to any images uploaded to your site? If not, then you'll need to be careful if you start changing images that belong to others.[/QUOTE]


No, right now, people are sending us pictures and texts, and we place them in a layout, print them as a sticker and stick on a chocolate box (this is our product). And the purpose of this site is to automate the production of stickers and order of our product. So that's what user should see: https://prnt.sc/i4ef6y (that's just a priciple itself) and that's what should we get: https://prnt.sc/i4ejrx

I found one way to merge using Node.JS and jimp, so I think I'll try to do this in this way, because I want to learn to program and this will be very good practice, I guess.
Copy linkTweet thisAlerts:
@NogDogJan 23.2018 — Most/all of the common web server-side languages will have an image library you can use (e.g. PHP has both the GD and ImageMagick extensions available), so whichever language seems most suitable for your environment and personal preferences is probably fine. ? If the watermark image is a transparent GIF or PNG, it should be relatively easy to merge it onto the user-supplied image.
Copy linkTweet thisAlerts:
@SkymediaFeb 05.2018 — Thanks for share such information.
×

Success!

Help @SliFaZ spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...