New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

theimg

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

theimg

Scale, resize, crop, images on the fly.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

theimg

The last image element you'll ever need.

Scale, resize, crop, apply filters and other manipulations to your images on the fly.

Install

npm i theimg

Usage

import { Image } from "theimg/react";

export function App() {
  return (
    <Image
      {/* Register images at https://theimgcdn.com */}
      id="f724a94b-4046-4862-8f17-002364866d76"

      {/* Choose between jpg, webp, png, ... */}
      format="webp"

      {/* Apply transformations */}
      transform={{
        width: 200,
        height: 400,
        fit: "cover",
        position: "left"
      }}
    />
  )
}

FAQs

Package last updated on 03 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts