samthejarvis / silverstripe-watermarking Goto Github PK
View Code? Open in Web Editor NEWA module for watermarking images in SilverStripe.
License: MIT License
A module for watermarking images in SilverStripe.
License: MIT License
Hi,
I Try this module on Silverstripe 4.3.
I'm weak at php but I update some things for SS4 but i still have some Error.
updating the the watermarks.yml
to the
---
Name: watermarkable
---
SilverStripe\SiteConfig\SiteConfig:
extensions:
- Silverstripe\Watermark\SiteConfig_WatermarkExtension
SilverStripe\Assets\Image:
extensions:
- Silverstripe\Watermark\Image_WatermarkExtension
GDBackend:
extensions:
- GDBackend_WatermarkExtension
and adding
namespace SilverStripe\Watermark;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Assets\File;
use SilverStripe\Assets\Image;
use SilverStripe\AssetAdmin\Forms\UploadField;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\TextField;
use SilverStripe\Forms\DropdownField;
use SilverStripe\Watermark\GDBackend_WatermarkExtension;
use SilverStripe\Watermark\Image_WatermarkExtension;
use Page;
use Exception;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\FieldType\DBField;
use SilverStripe\Core\Extension;
to the SiteConfig_WatermarkExtension.php
and Image::class
for watermark image
and adding
namespace SilverStripe\Watermark;
use SilverStripe\Core\Extension;
use SilverStripe\Watermark\GDBackend_WatermarkExtension;
use SilverStripe\Watermark\SiteConfig_WatermarkExtension;
use Page;
use Exception;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\FieldType\DBField;
use SilverStripe\Core\Config\Config;
use SilverStripe\Forms\FieldList;
use SilverStripe\ORM\DataExtension;
and changing \SilverStripe\Assets\Image_Backend $backend
in generateWatermarkedImage
to the Image_WatermarkExtension.php
and adding
namespace SilverStripe\Watermark;
use SilverStripe\Core\Extension;
use SilverStripe\Watermark\SiteConfig_WatermarkExtension;
use SilverStripe\Watermark\Image_WatermarkExtension;
use Page;
use Exception;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\FieldType\DBField;
in GDBackend_WatermarkExtension.php
Would you update this module for the SS4?
I have been using your module long time its is awesome, but now I need to pass images from one system to other by link, I am passing original file url, I need to make it wartermarked
It works on version 4, but it slows down the system
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.