question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Converting JPEG to TGA 16 bits per pixel

See original GitHub issue

Description

I’m trying to convert a jpeg image to tga 16 bits per pixel (non-paletted) format. Running an imagemagick convert operation directly with convert spongebob.jpeg -depth 5 spongebob_16bit.tga gives a file with expected format. Trying to reproduce the same output with Magick.NET results in incorrect bit depth or garbled images.

Steps to Reproduce

using (var image = new MagickImage("spongebob.jpeg"))
{
    image.Depth = 5;
    image.Write("spongebob_16bpp.tga");
}

System Configuration

  • Environment: Windows 10
  • Magick.NET version: Magick.NET-Q16-AnyCPU 7.15.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dlemstracommented, Feb 23, 2020

Just published a new release but I forgot to include this 😬. Going to publish a new release later today that includes this.

0reactions
dlemstracommented, Feb 22, 2020

TGA images have no DPI so I think you came to the correct conclusion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Convert JPEG to TGA with Filestar - Fast and Easy
Convert JPEG to TGA quickly and efficiently with Filestar's batch conversion ... It supports 8, 16, 24, or 32 bits per pixel at...
Read more >
Convert your JPG to TGA for Free Online
Do you want to convert a JPG file to a TGA file ? ... TGA files can now support 8, 16, 24 and...
Read more >
JPG to TGA Online Converter
JPG to TGA online converter is the easiest way to convert JPG files to TGA format. ... It supports 8, 16, 24 and...
Read more >
Convert Files To and From Truevision TGA Images
Our online TGA converter is functioned to transform your compatible file formats ... Targa graphic file format supports 8, 16, 24, or 32...
Read more >
JPEG to TGA (Online & Free)
Best way to convert your JPEG to TGA file in seconds. 100% free, secure and easy to use! ... Format supports color depths...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found