Giter Site home page Giter Site logo

surjithctly / sanity-plugin-asset-source-screenshotone Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 11 KB

Sanity Plugin to generate Screenshots from URL

Home Page: https://www.npmjs.com/package/sanity-plugin-asset-source-screenshotone

License: MIT License

JavaScript 100.00%
sanity sanity-plugin screenshot screenshot-from-url url-to-screenshot

sanity-plugin-asset-source-screenshotone's Introduction

sanity-plugin-asset-source-screenshotone

Sanity Plugin to generate Screenshots from URL.

CleanShot 2022-10-05 at 15 01 51@2x

Installation

sanity install asset-source-screenshotone

Configuration

This plugin is based on this awesome tool called Screenshot One. Create a free account to get started. Then go to the "Access" tab and copy your Access Key. Then add your access key to <your-studio-folder>/config/asset-source-screenshotone.json:

{
  "AccessKey": "<YOUR_ACCESS_KEY_HERE>"
}

Done

That's it. Now whenever you add an image field, you can see "Screenshot from URL" link from the dropdown. Then you can generate and insert the screenshot with the settings available.

Local Development

This plugin is powered by https://github.com/rexxars/sanipack. Follow the steps to develop locally.

cd sanity-plugin-asset-source-screenshotone
npm link
yarn build

# Link the plugin to your Sanity studio and start it
cd /path/to/my-studio
npm link sanity-plugin-asset-source-screenshotone
sanity install asset-source-screenshotone
sanity start

# In another terminal, start a watch task for your plugin
cd /path/to/sanity-plugin-spotify
npm run watch

License

MIT © Surjith S M See LICENSE

sanity-plugin-asset-source-screenshotone's People

Contributors

surjithctly avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.