• 0

WordPress Watermark Plugin?


Question

I'm trying to use a watermark that automatically adds the watermark image to the bottom of a post thumbnail automatically. I don't want it added on the image, but I want slapped right under it. Like 9GAG! :)

Anyone know anything about this?

Link to comment
https://www.neowin.net/forum/topic/1134116-wordpress-watermark-plugin/
Share on other sites

24 answers to this question

Recommended Posts

  • 0

Use CSS then.

.ImageDIv
{
position: relative;
}

.Image
{
padding-bottom:10px;
}

.Watermark
{
position: absolute;
bottom:0px;
right:0px;
}

I already have that by doing this:


#left .crop {
display: block;
overflow: hidden;
margin-top: -40px;
text-align: center;
}

#left .crop img {
margin: 40px auto 0;
}

But I'm aiming for a WordPress PHP plugin that creates the watermark automatically. Not like Watermark reloaded though, because I don't wanted added on top of the image, but right under.

  • 0

I already have that by doing this:


#left .crop {
display: block;
overflow: hidden;
margin-top: -40px;
text-align: center;
}

#left .crop img {
margin: 40px auto 0;
}

But I'm aiming for a WordPress PHP plugin that creates the watermark automatically. Not like Watermark reloaded though, because I don't wanted added on top of the image, but right under.

http://php.net/manual/en/book.image.php

That has all you need to make said plugin.

  • 0

http://php.net/manua.../book.image.php

That has all you need to make said plugin.

It'll only just tell me the same thing Watermark Reloaded does in that manual.

I've had the pro version of Watermark Reloaded before, and it only adds the watermark on top of the image. I want it added under, just like 9GAG where it can be hidden until someone tries to take the image.

  • 0

http://wordpress.org/extend/plugins/hotlink2watermark/

Do you want the watermark to still be a part of the image, just under it instead of overlaying it?

I think what they are looking for is a plugin that will not have a watermark on the image until it is either saved onto the client machine or linked out to another page. So on their own website it is not intrusive however, if you steal the image it will have a watermark.

  • 0

Do you want the watermark to still be a part of the image, just under it instead of overlaying it?

I do, I don't want them separated. Check out the site http://wtfyo.com. That's what I'm working on. If you move or take the image to the desktop, you'll see the image, but that's only because I photoshopped that watermark on there and CSS'd it to be 40 pixels hidden by overflow & margin.

Another thing is, not only can there be uploads within the dashboard, I have to make sure this function works in a custom upload page.

  • 0

Ok. So you want something like this: http://myers.in/testing/test.php but without the fading?

And then you can just set a containing div to the correct height with overflow:hidden; to make it appear as if there were no watermark.

  • 0

Ok. So you want something like this: http://myers.in/testing/test.php but without the fading?

And then you can just set a containing div to the correct height with overflow:hidden; to make it appear as if there were no watermark.

YES! That's what I want! :D Of course, without the fade haha. I say built in instead of uploading with the watermark is much better and I can prevent images from being linked outside with .htaccess I suppose. :)

  • 0

Alright. That's easy enough to do, but it will take a little bit of work to add compatibility for more than just '.jpg' images. What kind of images will you be displaying (.png, .jpg, etc.)? Also, if you could post a bit of the code where your image handling is done, that would be very helpful.

  • 0

Alright. That's easy enough to do, but it will take a little bit of work to add compatibility for more than just '.jpg' images. What kind of images will you be displaying (.png, .jpg, etc.)? Also, if you could post a bit of the code where your image handling is done, that would be very helpful.

For now, just png & jpg. This is running on WordPress, so the image source is ran from <?php the_post_thumbnail('full'); ?>. But I can get just the post thumbnail url instead of the <img> tag that it creates.

  • 0

Well, this is probably something you would want to happen to the image as soon as it's uploaded. If it's just png and jpg, it shouldn't be very difficult at all, but I actually meant the code that handles the upload, not the code that displays the image after it's uploaded. If you would rather do this to the image per request, that is possible as well, but not as clean...

  • 0

Well, this is probably something you would want to happen to the image as soon as it's uploaded. If it's just png and jpg, it shouldn't be very difficult at all, but I actually meant the code that handles the upload, not the code that displays the image after it's uploaded. If you would rather do this to the image per request, that is possible as well, but not as clean...

This is what I'll be using, I used to have it fully modified. It's basically a plugin that utilizes the custom post type and whatnot for WordPress.

source.zip

  • 0

Hm...what is the media_handle_upload() function in submit_user_images.php on line 171? I can't seem to find it and I believe that is where the image data is actually being handled.

  • 0

It'll only just tell me the same thing Watermark Reloaded does in that manual.

I've had the pro version of Watermark Reloaded before, and it only adds the watermark on top of the image. I want it added under, just like 9GAG where it can be hidden until someone tries to take the image.

You know what the actual idea of programming is, right? You learn how to code and make things do what you want. You seem to do the hacking idea, well not even that actually - more 'what I needs exist, I do not need to know how it works and cannot make any of it myself'... You will not get far like that in programming at all, in fact if you take a course in programming you'd fail the first test and be kicked out.

Bad programmers copy and paste.

Good programmers write their own code.

Great programmers write their own code, and recheck it and search/plan for areas that might have problems.

Programmers that are the bad link in companies and leave large gaping security holes and broken sites/features are those that don't even know what they're doing, and right now you fit into this category.

Making the watermark appear below the image on something that it overlays over the top is so simple that if you read the PHP GD guide (if you haven't then you shouldn't be doing ANY manipulation of images at all in PHP) it'd be probably 2 lines of code that you'd change in the whole thing, and you'd know exactly what lines to search for too.

  • 0

Hm...what is the media_handle_upload() function in submit_user_images.php on line 171? I can't seem to find it and I believe that is where the image data is actually being handled.

The image handles are still worked through WordPress' core. That's where I'd have trouble too.

Function: http://codex.wordpress.org/Function_Reference/media_handle_upload

You know what the actual idea of programming is, right? You learn how to code and make things do what you want. You seem to do the hacking idea, well not even that actually - more 'what I needs exist, I do not need to know how it works and cannot make any of it myself'... You will not get far like that in programming at all, in fact if you take a course in programming you'd fail the first test and be kicked out.

Bad programmers copy and paste.

Good programmers write their own code.

Great programmers write their own code, and recheck it and search/plan for areas that might have problems.

Programmers that are the bad link in companies and leave large gaping security holes and broken sites/features are those that don't even know what they're doing, and right now you fit into this category.

Making the watermark appear below the image on something that it overlays over the top is so simple that if you read the PHP GD guide (if you haven't then you shouldn't be doing ANY manipulation of images at all in PHP) it'd be probably 2 lines of code that you'd change in the whole thing, and you'd know exactly what lines to search for too.

Can you stop? Honestly, if this was plain PHP, I'd honestly work a little harder on it because It's more natural to code on, but this is WordPress, I have to comply with the core functions, nevertheless the security I have to ensure. I have priorities right now to build off what I can until I can refine what's most suitable for me.There's a reason why there's a community of developers. Real programmers help each other out.

  • 0

but this is WordPress, I have to comply with the core functions, nevertheless the security I have to ensure. I have priorities right now to build off what I can until I can refine what's most suitable for me.There's a reason why there's a community of developers. Real programmers help each other out.

You've listed 2 WP plugins that do it but don't position it correctly, I've linked you to the OFFICIAL PHP guide for how images are manipulated in PHP, if you had any clue about PHP you'd be able to read it and notice that you need to alter a few lines in the existing plugins to get what you want, it is NOT HARD, in fact it's VERY basic PHP-GD, the functions to search for are all listed on the page.

Don't say it's because it's wordpress, you can't do it when a simple solution exists. Try the simple solution instead of repeatedly bashing it and you might learn some PHP in the process.

EDIT: In fact, the http://wordpress.org...rmark-reloaded/ plugin which was mentioned previously says it can already do this;

'Watermark outside picture'.

  • 0

You've listed 2 WP plugins that do it but don't position it correctly, I've linked you to the OFFICIAL PHP guide for how images are manipulated in PHP, if you had any clue about PHP you'd be able to read it and notice that you need to alter a few lines in the existing plugins to get what you want, it is NOT HARD, in fact it's VERY basic PHP-GD, the functions to search for are all listed on the page.

Don't say it's because it's wordpress, you can't do it when a simple solution exists. Try the simple solution instead of repeatedly bashing it and you might learn some PHP in the process.

The process is to add the watermark UNDER the image which creates a new size. Those plugins are just offset alignments. There are people who learned PHP through WordPress and the help of of programmers. Sometimes the book is just not quick enough.

  • 0

You've listed 2 WP plugins that do it but don't position it correctly, I've linked you to the OFFICIAL PHP guide for how images are manipulated in PHP, if you had any clue about PHP you'd be able to read it and notice that you need to alter a few lines in the existing plugins to get what you want, it is NOT HARD, in fact it's VERY basic PHP-GD, the functions to search for are all listed on the page.

Don't say it's because it's wordpress, you can't do it when a simple solution exists. Try the simple solution instead of repeatedly bashing it and you might learn some PHP in the process.

EDIT: In fact, the http://wordpress.org...rmark-reloaded/ plugin which was mentioned previously says it can already do this;

'Watermark outside picture'.

You do realize that's a "To-Do" list, right?

  • 0

Hm...what is the media_handle_upload() function in submit_user_images.php on line 171? I can't seem to find it and I believe that is where the image data is actually being handled.

*slaps self*

Apologies for not reading right.

So I revised the upload function so that it will directly post to the main taxonomies, additionally making them only pending so I can decide whether it's good or not. it utilizes the media function just like Watermark reloaded, so I think the upload & merge function will come pretty handy. :)

upload.zip

This topic is now closed to further replies.
  • Posts

    • You can disable the bloat on every browser. That's not the point. I will never use a browser of a shady company. I don't trust them at all. I can still find adblocking solutions than having to rely on a browser from a shady company. Every year they try something shady lol 2016: Brave Ad Replacement https://archive.is/W0k4j#selection-203.7-203.28 2016: pay-to-win Wikipedia clone into the default search engine list https://github.com/brave/browser-laptop/issues/5475 2018: Tom Scott and other creators noticed Brave was soliciting donations in their names without their knowledge or consent. https://www.reddit.com/r/brave...aims_that_brave_is_falsely/ 2020: Brave got caught injecting URLs with affiliate codes https://www.theverge.com/2020/...-crypto-privacy-ceo-apology 2021: Brave's TOR window was found leaking DNS queries https://www.zdnet.com/article/...n-addresses-in-dns-traffic/ 2022: Brave floated the idea of further discouraging users from disabling sponsored messages. https://github.com/brave/brave-browser/issues/22066 2023: Brave got caught installing a paid VPN service on users' computers without their consent. https://www.xda-developers.com...owser-installs-vpn-windows/ 2023: Brave got caught scraping and reselling people's data with their custom web crawler, which was designed specifically not to announce itself to website owners. https://stackdiary.com/brave-s...ghted-data-for-ai-training/ 2024: Brave gave up on providing advanced fingerprint protection, citing flawed statistics https://www.bleepingcomputer.c...tion-as-it-breaks-websites/ 2025: Brave staff publish an article endorsing PrivacyTests and say they "work with legitimate testing sites" like them. This article fails to disclose PrivacyTests is run by a Brave Senior Architect! https://brave.com/blog/adblock...esting-websites-harm-users/
    • Alpine Linux 3.24 released with support for COSMIC Desktop and other improvements by David Uzondu Alpine Linux 3.24 has been released with updated system packages, including Linux kernel 6.18 and Rust 1.96. The team also added IPv6 support to the system installer, and they introduced automatic serial console configuration for headless setups. System76's COSMIC desktop environment is now available in the community repo. System76 originally started building this DE because its developers found GNOME to be pretty limited. Plus, it did not help that with virtually every GNOME update, the changes broke System76's custom desktop extensions. As for system packages, the Alpine team moved GTK+ 3.0 from the main repository to the community repository due to its legacy status. py3-setuptools has been upgraded to version 82.0.0, while the old pkg_resources module has been completely dropped. The team also removed outdated packages that still relied on py3-six and GTK+ 2.0. In addition to that, libsoup 2 has been removed because the library was affected by multiple security vulnerabilities. If you're a GRUB user, the Alpine Team said that you must manually run the grub-install command with your specific device or EFI options right after upgrading your system, otherwise, your computer may fail to boot properly with the newly updated GRUB 2.14 bootloader. New installations of Alpine Linux now offer an optional path to a /usr-merged directory layout if you set the BOOTSTRAP_USR_MERGED environment variable to 1 before you execute the setup-disk command. If you already run an older installation, you can migrate manually by installing the merge-usr package and executing its binary as the root user. The team recommends this layout to align Alpine with modern Linux standards, though you should verify your custom scripts before making the switch. Alpine Linux is a pretty tiny (~5MB) Linux distro built around musl libc, BusyBox, and OpenRC. It's been around since 2005, comes with its own package manager called Alpine Package Keeper (APK), and is widely used in modern cloud computing and software deployment.
    • Instagram now lets you manually reorder posts on your profile grid by David Uzondu Instagram is finally rolling out the ability to customize your feed layout as you see fit by letting you reorder posts on your profile grid. This feature comes several months after the app introduced a tool that lets users rearrange photos and videos within a carousel post after it has already been published. To do that, people tap the three-dot menu in the top right corner of the post, select the edit option, and reorganize their slides. Now that Instagram has expanded the feature to your profile grid, you can organize your main page without deleting old uploads. To use the new system, you simply tap any picture on your grid and select the option to reorder. This action opens up a separate screen where you can freely drag your grid items around until you get your preferred aesthetic, and then you just hit the back button to save your changes. Instagram's Threads account posted that the system would reach accounts starting this week, so you might need to wait for the automatic update to hit your phone. https://www.threads.com/@instagram/post/DZVV_fyjjSW In other Instagram news, last week, people figured out that if you ask Meta's AI support assistant to hand over any Instagram account, the bot will actually hand it over (even if the victim's account had 2FA enabled). The security exploit involved the assistant accepting prompts from users and generating password reset links for unauthorized email addresses. Meta said that the issue has now been fixed, but this came after the issue affected several high-profile accounts, including @obamawhitehouse. Last month, the company finally rolled out paid subscription tiers for WhatsApp and other Meta social platforms after months of testing. WhatsApp Plus costs $2.99 a month and gives you custom themes, while Instagram Plus and Facebook Plus cost $3.99 a month for extra profile customization and story rewatch counters. Meta's also working on Meta One, a unified subscription service that contains options for heavy users of its servers who want more reach or advanced features. For instance, Meta One Essential ($14.99/mo) comes with a verified badge and impersonation protection. If you pay for Meta One Premium ($19.99/mo), you get deeper AI reasoning tools, whereas the Meta One Advanced ($49.99/mo) tier increases your search placement (on Facebook and Instagram) and visibility.
    • Hello mysterious lamborghiniv10, I was in Australia and... now I'm in the Netherlands. 
    • EU says Meta must restore rival chatbots' access to WhatsApp by Hamid Ganji The European Commission has ordered Meta to restore third-party AI chatbots’ access to WhatsApp after the tech giant decided to block them from operating on the popular messaging platform. After Meta banned rival AI chatbots from operating on WhatsApp, the European Commission launched an antitrust investigation to determine whether the company had abused its market dominance. As a result of Meta’s decision, third-party AI chatbots, including Microsoft’s Copilot and OpenAI’s ChatGPT, were prevented from operating on WhatsApp. At the time, Meta said it wanted to reserve the WhatsApp Business API for other types of businesses and did not allow rival chatbots to use it. This effectively prevented the WhatsApp ecosystem from being used to distribute rival chatbot services. However, the European Commission has now announced an interim measures decision requiring Meta to restore access to WhatsApp for rival general-purpose AI assistants on the same terms and conditions as before October 15, 2025. The Commission has also asked Meta to maintain that access until the antitrust investigation is concluded. The Commission argues that Meta has used its dominant market position to prevent rival AI chatbots from accessing the WhatsApp Business API. While Meta allowed rival services to return to WhatsApp by paying a fee, the European Commission still considers that arrangement to be a de facto access ban. According to EU antitrust chief Teresa Ribera, the fees introduced by Meta are so high that using WhatsApp is no longer economically sustainable for competitors. “It seems that Meta expects to leverage the vast reach and likely dominance of WhatsApp to benefit its own AI assistant and to foreclose rivals,” Ribera said. “We cannot let large digital incumbents leverage their dominance of the past to dictate who in Europe gets to compete and who gets to innovate in AI.”
  • Recent Achievements

    • One Year In
      Primer1st earned a badge
      One Year In
    • Experienced
      JayZJay went up a rank
      Experienced
    • Reacting Well
      Sir_Timbit earned a badge
      Reacting Well
    • Week One Done
      rubentuben8 earned a badge
      Week One Done
    • Week One Done
      ARaclen earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      512
    2. 2
      PsYcHoKiLLa
      229
    3. 3
      Edouard
      134
    4. 4
      ATLien_0
      87
    5. 5
      Steven P.
      80
  • Tell a friend

    Love Neowin? Tell a friend!