diff --git a/locales/en.yml b/locales/en.yml index 13ceda9b..b6117744 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -432,6 +432,11 @@ tools: text-to-binary: title: Text to ASCII binary description: Convert text to its ASCII binary representation and vice-versa. + + image-resizer: + title: Image resizer + description: Convert the width and height of an image file, preview, and download it in a desired format (.jpg, .jpeg, .png, .bmp, .ico, .svg) json-to-object: + json-to-object: title: JSON to object description: Parse and convert JSON to object. @@ -439,6 +444,7 @@ tools: multi-link-downloader: title: Multi link downloader description: Asynchronously downloads from multiple links into a zip file while a single link downloads directly. (Requires an internet connection) + unicode-to-java-entities: title: Unicode Characters to Java Entities Converter description: Unicode Characters to Java Entities Converter and vice-versa \ No newline at end of file diff --git a/src/tools/image-resizer/image-resizer.vue b/src/tools/image-resizer/image-resizer.vue new file mode 100644 index 00000000..3c88ff1b --- /dev/null +++ b/src/tools/image-resizer/image-resizer.vue @@ -0,0 +1,197 @@ + + + + + diff --git a/src/tools/image-resizer/index.ts b/src/tools/image-resizer/index.ts new file mode 100644 index 00000000..968d2353 --- /dev/null +++ b/src/tools/image-resizer/index.ts @@ -0,0 +1,12 @@ +import { IconResize } from '@tabler/icons-vue'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'Image resizer', + path: '/image-resizer', + description: '', + keywords: ['image', 'resizer', 'favicon', 'jpg', 'jpeg', 'png', 'bmp', 'ico', 'svg'], + component: () => import('./image-resizer.vue'), + icon: IconResize, + createdAt: new Date('2024-10-22'), +}); diff --git a/src/tools/index.ts b/src/tools/index.ts index 84ba93b1..b39755df 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -1,6 +1,7 @@ import { tool as base64FileConverter } from './base64-file-converter'; import { tool as base64StringConverter } from './base64-string-converter'; import { tool as basicAuthGenerator } from './basic-auth-generator'; +import { tool as imageResizer } from './image-resizer'; import { tool as multiLinkDownloader } from './multi-link-downloader'; import { tool as aspectRatioCalculator } from './aspect-ratio-calculator'; import { tool as extractTextFromHtml } from './extract-text-from-html'; @@ -391,6 +392,7 @@ export const toolsByCategory: ToolCategory[] = [ imageToAsciiArt, imageExifReader, aspectRatioCalculator, + imageResizer, ], }, {