Forum Replies Created

Viewing 15 replies - 1 through 15 (of 134 total)
  • Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hi Lovro,

    The problem is that the AttachmentProcessorGD is not meant to be extended. It has some private methods which cannot be extended (the apply_text_watermark method is one of them). This easy-watermark/available-processors filter was created to allow the addition of other processors in the future, not the modification of the existing ones.
    But it is still possible to achieve what you want, you just need to extend the abstract AttachmentProcessor class and copy all the code of the AttachmentProcessorGD into your new class. Then you can make your modifications. Here is a working example that will add a ” mod” suffix to the watermark text: https://pastebin.com/GfiuPuxG
    Please note the line 496 – this is where I made a modification.

    Just be careful while doing your changes, you can easily break the plugin and it might get hard to debug.

    Hope it will work for you, good luck ??

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hi, loxlie,

    There isn’t anything obvious to use in this scenario (yet). But there is a filter which might be useful for you. You can find it in the code here. The idea of this filter was to allow to control which watermark should be applied to which attachment, but you could use it to disable all watermarks in some case and enable it in the other. Here is the example code which could work for you: https://pastebin.com/dFu9Wvxa

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hi @ppehrson

    You are right about the WordPress scaling mechanism. If you upload an image larger than 2560px it will be scaled down and saved with the -scaled suffix. WordPress then uses this image as a full-size image instead of the original. Easy Watermark does not need to know if the image has been scaled or not. If your watermark is configured to be applied to a full-size image then it will get applied to the scaled one. I’ve just tested it a few times and can assure you it works this way.

    Also, there is no possibility that the size you disabled gets watermarked anyway. Please note, that sometimes the image you see can be a different size than you expect. For example in the WordPress admin area in Media Library there are square thumbs which are in fact of medium size, not the thumbnail size as you might think.

    If you still experience issues with Easy Watermark please create a new support topic and describe the problem.

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Ahh, in the new media page files are listed as a grid of thumbs so to see the link you need to switch the view to the table (There are two icons to switch view on the left, right beneath the “Media Library” title text).

    And you need to open the image editing page to see the metabox called “Easy Watermak”.

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hello,

    If the plugin is installed correctly and activater, the links MUST be in the place. Can you give me a screenshot of the Easy Watermark settings page?

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hello,

    Sorry for the long time with no answer.

    Please give me more information about the circumstances of this message: Does it appear when you watermark single image or you are using a bulk action? Does the “Auto Watermark” feature work correctly? Do you use an image watermark, text watermark or both?

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hello,

    First, really sorry about this long time with no answer.

    Please take a look at my response on this thread: https://www.ads-software.com/support/topic/watermark-not-apply-via-lmedia-libraty-on-other-size?replies=4
    Probably it is the same problem. Let me know, if it won’t work for you.

    Best Regards

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hello,

    Sorry for this long time without answer.

    Currently, Easy Watermark is not designed to work the way you are talking about. If you still need this feature, we can talk about a custom modification I would do for you to make it possible. Please write me an email.

    Best Regards

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hello,

    Sorry for the long period with no answer.

    To add both image and text watermatks you need to set the option named “Watermark Type” on the “General” section of the plugin’s settings page to “Image + Text” (there are 3 options, “Text” for text only, “Image” for image only and the third option you need to choose). Please let me know if it works for you.

    Best Regards

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hello,

    Actually I was not listening, didn’t have time recently to develope the plugin or even read this support forum, I’m really sorry.

    About your problem: It’s probably caused by the browser cache (the images are watermarked, but the browser shows you the previous version of the file which was “remembered” in the browsers cache). Please try to completely refresh the page (ctrl + f5). If it will not help, please take a look at the image files on the server directly (it’s located in wp-config/uploads in your wordpress installation dir). If the files are still not watermarked, please let me know (but I’m prety sure it’s the cache).

    BTW, I’m working on a big update of the plugin now, so you can expect any issues I’ll find will be removed.

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hello,

    I apologize I didn’t respond earlier to this thread.
    I’ve just tested the plugin once more with the latest wordpress (4.1) and nothing like this happens, there is also nothing in the code that would allow to watermark image sizes which are not selected on the settings page.
    Could you please give me some information about any circumstances? What other plugins do you use, what are the settings of your Easy Watermark install (please give me some screenshots if you can).
    Do you see any errors? Please try to set wordpress to debug mode try to watermark some image.

    Best Regards

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    As it is written on the main repository page for this plugin: “Compatible up to: 3.7.1“. This is not the reason to leave negative rating.

    Also I was trying to get this plugin working with the new wordpress UI but it is not so easy now and I had no more time to make it compatible with the last wordpress release. Hope I’ll make it in the future!

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hello,

    Sorry for the long time without answer. The plugin is not abandoned and it will be developed in the future. Hovewer, I am the only developer of this plugin, also programming is not my profession, it’s more like a hobby. I deal with something completely diffrent daily in my life, and recently had no time to even read this support forum. Really sorry for that.

    I’m afraid I can’t say a lot about your issues without seeing this particular wordpress installation in action. I test the plugin on many diffrent wordpress installations on many server configurations, but I can’t test it all possible ways, it’s just impossibile for one person.

    If you could give me an access to your wordpress, maybe I could find the problem. If you still need help with this, please write me an email.

    Best Regards

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hello,

    Sorry for this late answer. Easy Watermark doesn’t work on directiries, it’s just hooked in to the wordpress function which adds the attachment to the wordpress library. Many themes/plugins use the same wordpress function and the images can be watermarked. Maybe Photocrati doesn’t use the wordpress way (but it really should), so there is no way to make it working with Easy Watermark.
    I don’t know this theme, so I can’t speak for sure. If you sent me the code of the theme I could check it and maybe even if it’s not compatibile I could make some provisional solution for you to make it work.
    You can find my email address in the plugin, contact me please if you still need it.

    Best Regards

    Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hello,

    That’s good you pointed this out. There is some logical error in the restoring function: after creating the backup copy of the watermarked file it saves the backed up filename in the post meta for the watermarked attachment. It’s unnessesary, since the backed up file has the same name as the original and the directories hierarchy is equal to the original attachments directory.

    Solution for you is simple: just use an sql query on the database in your staging area to simply change all the “/home4/devsite/public_html/” to “/staging/wordpress/directory/” or whatever in the wp_postmeta table
    (use the path on the server, not the domain since it’s all done on the server side)

    Please let me know if you can do this, or if you don’t know sql or have some problems I can prepare a precise instructions or even do it for you.

    Sorry for the problems, it will be simplified in the next version!

    Best Regards

Viewing 15 replies - 1 through 15 (of 134 total)