[DEV] Advanced Attach Watermark v.0.1.4

Modifications maintained and supported by 4seven
Forum rules
This forum is moderated by 4seven!
Locked
User avatar
4seven
BBCoder III
BBCoder III
Posts: 124
Joined: 11 Mar 2010, 19:43

[DEV] Advanced Attach Watermark v.0.1.4

Post by 4seven »

Advanced Attach Watermark

MOD-Title: Advanced Attach Watermark
MOD-Version: 0.1.4
MOD-Author: 4seven (Bugfixing, Redesign, Advanced)

Credits: Josh18657
Credits: Torstein Hønsi for higslide
Credits: Beta-Tester and Usability-Inspirator for v.0.1.2: Tim
Credits: Beta-Tester and MODX for v.0.1.3: jonnilaumann

Note: Since the author did not write longer in [BETA]-Thread, i take over the development of this Mod. The Mod is bugfixed and completely re-designed.

MOD-Description: This Mod inserts a watermark in Attachment Pics

phpBB-Version: phpBB 3.0.x
phpBB-Languages: en, de
phpBB-Styles: prosilver, subsilver2

Download:
http://www.4seven.de/forum/6test/viewtopic.php?f=3&t=80

Note: Install also this fix
http://www.phpbb.com/community/viewtopi ... #p12903336

Image

Image

--------------------

Features since v.0.1.2

- Clean and perfect Watermarks
- Thumb-Pics watermarking
- JPG is standard output-format (fixes the "encrease-file-size bug")
- Adjustable position, quality and transparency of output JPG in image-Mode
- Adjustable position, degree, color, font and transparency in text-Mode
- Watermark-size is dynamic (standard 50% of main-pic) to prevent a "little-watermark" on large pics, which makes it possible to easy stamp it away with photoshop etc.
- Compatibility for "multiple uploads mod" *
- Optional Backup of original for each watermarked main- or thumb-pic (files/backup)
- Auto-deleting of backup'ed thumb- and main-pics by deleting original post or attach
- Usage of true type fonts with adjustable size/color of text-watermarks
- Insertable genuine resize function (instead of the usual javascript client-side-resize-method, which makes the pic only "optically-smaller" )
- Resize-function with/without watermark
- Resize-function as standalone feature
- Convert-function [img]: The picture copied to " images/files/" and inserted in posting by click with [img] - tags.
- Convert-function [img] with/without watermark
- Convert-function [img] as standalone-feature
- Convert-function [img_highslide]: The picture copied to " images/files/" and inserted in posting by click with [img_highslide] - tags.
- Convert-function [img_highslide] with/without watermark
- Convert-function [img_highslide] as standalone-feature
- ACP Orphan-function for [img] and [img_highslide] convert-mode
- ACP Orphan-function for [attachment]
- Afterward water-marking of present attach's (with backup)
- Thumb-preview in postbox for [img] and [img_highslide] in both convert-modes and both standard-styles
- Combining of "Attachment Watermark Function" with "Convert Function [img]" and "Convert Function [img_higslide]"

Advanced Features since v.0.1.4

- Optimized Main-Code
- Complete New Text WM Engine
- Textsize-Ratio addicted to img-width, instead of em or px
- Full UTF8 Font-Support
- Perfect Text Offset

- AAW Username Mode
- AAW Private Mode
- AAW Watermark Info

- Mix of AAW Username- and AAW Private-Mode with Global Watermark
- User Switch to activate Global Watermark for all 3 Modes (attachment, img, img_highslide)
- Adding global on/off switches for Text-Watermarking in AAW Username- and AAW Private-mode
- Adding group-rights for Text-Watermarking in AAW Username- and AAW Private-mode
- Re-worked Language Files (en,de)
- valid xhtml 1.0 strict (prosilver)
- valid 4.0.1 transitional (subsilver2)

- Complete overworking ACP-Module
- ACP Color-Picker for all Text Color Modes (no inserting "by hand" anymore)
- ACP Font-Picker for Text Font Mode
- ACP Group-ID-Picker for group rights in AAW Username- / AAW Private-Mode
- Visual View of active Text- and Text-Background-Colors (see ACP Screens)
- Re-coding afterward module with new text engine
- Optimize Usability for ACP

--------------------

ACP Screens

ACP-Basics http://www.4seven.de/forum/6test/images ... basics.png
ACP-Specials http://www.4seven.de/forum/6test/images ... ecials.png

Posting Screens

Main Sight
http://www.4seven.de/forum/6test/images/mods/1.jpg
AAW Username Mode
http://www.4seven.de/forum/6test/images/mods/2.jpg
AAW Private Mode
http://www.4seven.de/forum/6test/images/mods/3.jpg
AAW Watermark Info
http://www.4seven.de/forum/6test/images/mods/4.jpg

--------------------

Demos

Results Demo:

http://www.4seven.de/forum/media/viewto ... f=10&t=365

Posting Demo:

(un: test | pw: testuser)

prosilver

subsilver2

AeroBlue

--------------------

* multiple-upload-mod

download
http://www.phpbb.com/community/viewtopi ... &t=2101152

upload bar for prosilver
http://www.phpbb.com/community/viewtopi ... 5#p9934415
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven
BBCoder III
BBCoder III
Posts: 124
Joined: 11 Mar 2010, 19:43

[DEV] Advanced Attach Watermark v.0.1.4

Post by 4seven »

Thoughts about splitting mod

My study of different needs/practise in using aaw over the times let me think about splitting the mod. It should give a slim and a full version. Also i think about the extracting of some stuff.

So these would be the two main mods:
  • Attach Watermark
  • Advanced Attach Watermark
----------
Details
----------
    Attach Watermark [size=85](3 base modes)[/size]
  • Global image watermark
  • Global text watermark (with font support)
  • Global user watermark (UserX, Boardname, Submitted at * etc.)
  • Afterward watermark process
  • Delete orphans
Slim module with load balancing. Means, watermarking proceed on submit, not on upload. Also you can submit normal (standard: none wm) and with wm (or vice versa). So a more efficient engine without bells and whistles.

---------------------------------
    Advanced Attach Watermark
The great ole stuff in a distilled, overworked v.0.2.0

---------------------------------
    Mods/Snippets
  • Real [attachment] thumbs
  • Font [img] maker
  • jQ [img] marker
  • some more..
Current Mods | Mod Base | php(BB) programming | No help via PM
kar76
BBCoder I
BBCoder I
Posts: 2
Joined: 29 Dec 2012, 12:36
BBCodes: 0

[DEV] Advanced Attach Watermark v.0.1.4

Post by kar76 »

Hello

Happy New Year

Please help me, i am not coder not much expert.
I want to create other color zone around text watermark option. How can i do this?
In which file i can see code which is for color and size for watermark.
User avatar
4seven
BBCoder III
BBCoder III
Posts: 124
Joined: 11 Mar 2010, 19:43

[DEV] Advanced Attach Watermark v.0.1.4

Post by 4seven »

You can manage this Global in ACP's Mod Section or in User Mode per Image. Both with colorpicker. No Code edits needed.
Current Mods | Mod Base | php(BB) programming | No help via PM
kar76
BBCoder I
BBCoder I
Posts: 2
Joined: 29 Dec 2012, 12:36
BBCodes: 0

[DEV] Advanced Attach Watermark v.0.1.4

Post by kar76 »

But that make black strip in backgroung and i don't want like that,
I just want to put small watermark text at corner
But problem is when i put image option (png) watermark it show deform watermark
which show spotted line around text and smaller the watermark
more deformation in text.

But when i use text option for watermark it show good text format.

But problem with this option is watermark merge with grey background, it will show
if use zone around it but i don't know how.
I googled and found code which use same values, except for font size and color for watermark
and zone around it. But i don't know how to implement it in your code.

Code: Select all

//Give a white shadow
$white = imagecolorallocate($image_p, 255, 255, 255);
imagettftext($image_p, $font_size, 0, 10, $top, $white, $font, $WaterMarkText);

Code: Select all

//Print in black color
$black = imagecolorallocate($image_p, 0, 0, 0);
imagettftext($image_p, $font_size, 0, 8, $top-1, $black, $font, $WaterMarkText);
Please help me
User avatar
4seven
BBCoder III
BBCoder III
Posts: 124
Joined: 11 Mar 2010, 19:43

[DEV] Advanced Attach Watermark v.0.1.4

Post by 4seven »

For personal edits i have no time, sorry. All features you see in first posts works as intended (see also demo).
I never noticed grey backgrounds or black strips. May check your server for GD2 (minimum requirement for this mod). This mod is tested since years on uncountable boards.
Current Mods | Mod Base | php(BB) programming | No help via PM
Florrio
BBCoder I
BBCoder I
Posts: 1
Joined: 14 Nov 2014, 07:31
BBCodes: 1

Re: [DEV] Advanced Attach Watermark v.0.1.4

Post by Florrio »

But that make black strip in backgroung and i don't want like that,
I just want to put small watermark text at corner
But problem is when i put image option (png) watermark it show deform watermark
which show spotted line around text and smaller the watermark
more deformation in text.

But when i use text option for watermark it show good text format.

But problem with this option is watermark merge with grey background, it will show
if use zone around it but i don't know how. :mrgreen: :roll: :oops:


______________________
Johni Imtiaz..!!
User avatar
sitesplat
BBCoder II
BBCoder II
Posts: 5
Joined: 28 Nov 2014, 03:11
BBCodes: 1000

Re: [DEV] Advanced Attach Watermark v.0.1.4

Post by sitesplat »

I suggest you to post on 4seven board. He hasn't been around in a while. You might get an answer there. http://www.4seven.de/forum/6test/index.php
- FLATBOOTS - PhpBB Flat Design - Bootstrap3
- Contact me Via PM or e-mail for Custom work
- Deploy an SSD cloud server in 55 seconds. Sign up and get $10 in credit.
User avatar
4seven
BBCoder III
BBCoder III
Posts: 124
Joined: 11 Mar 2010, 19:43

Re: [DEV] Advanced Attach Watermark v.0.1.4

Post by 4seven »

https://www.phpbb.com/community/viewtop ... #p11480155
install wrote:#
#-----[ NOTE 1 (en)]------------------------------------------
#

The Graphics..

includes/watermark/images/watermark.png
includes/watermark/afterward/watermark.png

..must be identical and sized should be 500 x 500 px -> 1000 x 1000 px.

Format: *.png / 24 bit / transparent
Important > eg. in Photoshop > 500 x 500 px -> 1000 x 1000 px. > *.png / 24 bit / transparent

With this settings i've never have any trouble (eg. black strips or anything else)
Current Mods | Mod Base | php(BB) programming | No help via PM
Locked