Detect Content Embedded in Images

mjkaufer

I was wondering if there was any possible way to detect if there is content uploaded into images. For instance, using WinRAR, I could embed any sort of file into an image, while maintaining the images format as an image. Sites like imgur manage to block this. I am wondering how they do this.

I think one possible way would be to upload the image data to a canvas, so that it's represented purely as an array of pixels, and then reconvert the canvas's data back into an image. However, this would be rather time consuming on the server side.

Does anybody know of an efficient way to do this?

Damian Krawczyk

As you mentioned node.js and server side you can do the following:

1) Use imagemagic with node binding node-imagemagick - it uses cli imagemagic so it will be fast. Library is widely used so you will find plenty of examples how to remove Exif and unnecessary data from file. In worst case scenario you can recompress file.

2) If you are working with jpeg image only you can use node-jpegoptim and optimise each uploaded file. It is also using cli so will be fast

3) Finally you can use node-smushit and use Yahoo servers to do the job however you need to check if their terms of service are ok with your content.

Those are 3 that came to my mind, I hope one of those will satisfy your needs.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Javascript match() regex to detect URLs and link to embedded content

From Dev

Using Content-ID and cid for embedded email images in Thunderbird

From Dev

Detect if image is embedded

From Dev

Transform linked images to embedded images

From Dev

Embedded images not showing

From Dev

Thunderbird not showing embedded images?

From Dev

NSScrollView embedded content is hidden

From Dev

Unique stylesheet for embedded content

From Dev

JavaFX: detect if application is embedded in a browser

From Dev

JavaFX: detect if application is embedded in a browser

From Dev

detect text in images with opencv

From Dev

Detect if browser disables images

From Dev

How to turn all embedded images into linked images

From Dev

Extracting embedded images from a PDF

From Dev

Print a Jira issue with embedded images?

From Dev

UIContainerView height of content (embedded UITableViewController)

From Dev

detect text in passport images with opencv

From Dev

How to detect a shift between images

From Dev

Detect Pixi canvas images loaded

From Dev

Detect if a user scrolls to the bottom of an embedded pdf

From Dev

How in Chromium Embedded detect if we are running as subprocess?

From Dev

ASP Content Images not working

From Dev

Target images in content of post

From Dev

Isolating images and content

From Dev

Detect text direction based on content

From Dev

How To Detect If No Content On Next Page?

From Dev

How to detect rows without content?

From Dev

Detect file type based on content

From Dev

How to detect is content Netflix original or not?