File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 6969
7070## Features 😁
7171
72+ - ** Optimized for browsers. Limited availability on mobile.**
7273- Download thumbnail images
7374- Resize the canvas
7475- Fill the background with colors or pictures
@@ -159,7 +160,7 @@ npm install react-thumbnail-generator next-transpile-modules
159160<br />
160161
161162### STEP 2️⃣
162- - Modify next.config
163+ - Modify ` next.config `
163164``` js
164165/** @type {import('next').NextConfig} */
165166const nextConfig = {
@@ -173,17 +174,14 @@ module.exports = nextConfig;
173174<br />
174175
175176### STEP 3️⃣
176- - Add ` <ThumbnailGenerator> ` to dynamic import .
177+ - Add ` <ThumbnailGenerator> ` component .
177178
178179``` jsx
179- import dynamic from " next/dynamic" ;
180- import Image from " next/image" ;
180+ import ThumbnailGenerator from ' react-thumbnail-generator' ;
181181
182182export default function Home () {
183183 return (
184- < ThumbnailGenerator
185- buttonIcon= {< Image src= {buttonIcon} width= {30 } height= {30 } alt= " buttonIcon" / > }
186- / >
184+ < ThumbnailGenerator / >
187185 );
188186}
189187
Original file line number Diff line number Diff line change 11{
22 "name" : " react-thumbnail-generator" ,
3- "version" : " 3.0.3 " ,
3+ "version" : " 3.0.4 " ,
44 "description" : " react-thumbnail-generator" ,
55 "main" : " dist/index.js" ,
66 "module" : " dist/index.js" ,
You can’t perform that action at this time.
0 commit comments