1.1.6 • Published 5 years ago

thumbor-ts-gatsby-image v1.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Thumbor TS Gatsby Image

Auto convert thumbor-ts instances into gatsby-image compatible objects

Usage

import React, { FC } from "react";
import Img from "gatsby-image";
import { useFixed } from "thumbor-ts-gatsby-image";
import { Thumbor } from "thumbor-ts";

// Your encryption key is not required, but your link will be unsafe.
const thumbor = Thumbor({
  serverUrl: "http://myserver.thumbor.com",
  securityKey: "MY_KEY"
});

const image = thumbor.setImagePath("00223lsvrnzeaf42.png").smartCrop(true);

const Img: FC = () => {
  const fixed = useFixed(image, { width: 200, height: 300 });
  return <Img fixed={fixed} />;
};
1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago