
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@neosyn-ee/nest-fastify-media
Advanced tools
A high-performance image processing library for NestJS applications using Fastify. Provides image conversion, resizing, and caching capabilities.
npm install sharp @nestjs/platform-fastify
import { Module } from '@nestjs/common';
import { NestFastifyMediaService } from 'nest-fastify-media';
@Module({
providers: [NestFastifyMediaService],
exports: [NestFastifyMediaService],
})
export class MediaModule {}
import { Controller, Get } from '@nestjs/common';
import { NestFastifyMediaService } from 'nest-fastify-media';
@Controller('images')
export class ImageController {
constructor(private readonly mediaService: NestFastifyMediaService) {}
@Get('convert')
async convertImage() {
return {
buffer: await this.mediaService.convertImage({
imageUrl: 'https://example.com/image.jpg',
outputFormat: 'webp',
width: 800,
}),
base64: await this.mediaService.convertImageToBase64({
imageUrl: 'https://example.com/image.jpg',
outputFormat: 'png',
}),
};
}
}
convertImage(dto: ConvertImageDto): Promise<Buffer>
Converts and resizes an image, returning a Buffer.
convertImageToBase64(dto: ConvertImageDto): Promise<string>
Converts an image and returns as Base64 Data URL.
| Parameter | Type | Default | Description |
|---|---|---|---|
imageUrl | string | - | Source image URL (required) |
outputFormat | string | png | Output format (jpeg/png/webp) |
width | number | - | Target width in pixels |
height | number | - | Target height in pixels |
const buffer = await mediaService.convertImage({
imageUrl: 'https://example.com/photo.jpg',
outputFormat: 'webp',
});
const base64 = await mediaService.convertImageToBase64({
imageUrl: 'https://example.com/photo.jpg',
outputFormat: 'png',
width: 300,
height: 200,
});
<img src="data:image/png;base64,..." alt="Converted Image" />
FAQs
High-performance image conversion for NestJS with Fastify
We found that @neosyn-ee/nest-fastify-media demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.