GithubHelp home page GithubHelp logo

silverstripe-watermarking's People

Contributors

samthejarvis avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

silverstripe-watermarking's Issues

Is there any update for SS4?

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?

how to add watermark to original file?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.