Questions tagged [image-conversion]

Use this tag for questions about conversion from one image format to another. This is for still images only; for video, use the [video-conversion] tag.

This tag applies to any kind of conversion from one still image format to another. Video conversion questions should use .

362 questions
3
votes
2 answers

Dynamic PHP image with a PNG extension

I'm trying to make an image similar to one of these: http://www.danasoft.com/vipersig.jpg Not really content wise (displaying IP addresses and headers), but more so a PHP image displayed in a PNG format (so I can use it on websites, within BB image…
user882347
3
votes
2 answers

How to replace old image with converted webp image in Wordpress media library

I have this hook in Wordpress that will convert any uploaded PNGs or JPEGS to WebP images: add_filter( 'wp_handle_upload', 'create_webp' ); function create_webp($file) { if ($file['type'] === "image/png") { // Create and save …
Alex Douglas
  • 534
  • 1
  • 8
  • 21
3
votes
1 answer

A value of type 'String' can't be assigned to a variable of type 'RxString' in flutter Getx

I'm trying to convert image to base64 text in Getx controller but it shows error saying "A value of type 'String' can't be assigned to a variable of type 'RxString'".
3
votes
3 answers

How to convert jpeg to progressive image in JavaScript?

The use case: an user uploads an image by the browser, the app should take that image convert it to progressive and upload it to the server, so another app can consume that and make a progressive load of the image. I tried some libreries like 'gm'…
3
votes
3 answers

YUV420 to RGB conversion

I converted an RGB matrix to YUV matrix using this formula: Y = (0.257 * R) + (0.504 * G) + (0.098 * B) + 16 Cr = V = (0.439 * R) - (0.368 * G) - (0.071 * B) + 128 Cb = U = -(0.148 * R) - (0.291 * G) + (0.439 * B) + 128 I then did a 4:2:0…
doc
  • 71
  • 1
  • 3
  • 7
3
votes
2 answers

Conversion of an image to a raw bitmap file

I am trying to run a program which has the following requirement: This program reads in an uncompressed gray-scale image with one byte per pixel and a size of 256*256 pixels (no image header) How do I convert a jpg image to fit the above…
Rohit Sarkar
  • 73
  • 1
  • 8
3
votes
2 answers

How to convert PNG to BMP at runtime?

I need to convert PNG file to BMP file on runtime. I can't do it like Image dummy = Image.FromFile("image.png"); dummy.Save("image.bmp", ImageFormat.Bmp); because i can't save the bmp image on the local disk as a file. Thanks for any help.
Yanshof
  • 9,659
  • 21
  • 95
  • 195
3
votes
0 answers

Why Tensorflow object detection API uses YUV420SP to ARGB8888 conversion

So I got the tensorflow object detection API running on Android and I've noticed while going through the code that before processing frames taken from the camera they're is a conversion that goes like this in the CameraActivity.java : …
user 007
  • 821
  • 10
  • 31
3
votes
3 answers

Why does rendering a png from this pdf using imagemagick create these streaky artifacts?

I'm running ghostscript 9.22, libpng 1.6.34, and imagemagick 7.0.7-11 Q16 Here is the command that replicates the issue: convert -density 400 icon.pdf -scale 1024x1024 ./appicon-1024x1024.png Here is a link to the input…
3
votes
3 answers

Save Bitmap with transparency to PNG in Delphi 2007

I have a Delphi bitmap (32Bit) that has transparency information. I need to convert and save it to a PNG file while preserving the transparency. The tools I currently have are the graphics32 Library, GR32_PNG (by Christian Budde), and PNGImage (by…
Tim
  • 1,549
  • 1
  • 20
  • 37
3
votes
1 answer

Histogram equalization help in MATLAB

My code is shown below: G= histeq(imread('F:\Thesis\images\image1.tif')); figure,imshow(G); The error message I got was the following and I'm not sure why it is appearing: Error using histeq Expected input number 1, I, to be two-dimensional. Error…
Mitesh
  • 1,544
  • 3
  • 13
  • 26
3
votes
3 answers

How do I convert webp data URI to png

I have converted the webp image to png by using WePJS on the fly. But this library works only in image file like "abc.webp". It does not convert into png image from webp image made by something like "data:image/webp;base64,UklGRvYRAABXRUJQ....." Is…
Suman Bogati
  • 6,289
  • 1
  • 23
  • 34
3
votes
2 answers

How to "sanitize" image uploaded and convert to PNG, with PHP?

I'm adding a profile picture feature to my site, and for security I would like to convert images server-side to PNG format, and strip extra information out of the file. It should be a pixel to pixel conversion if that is possible. I don't need to…
Phoenix Logan
  • 1,238
  • 3
  • 19
  • 31
3
votes
1 answer

Convert SVG to PNG with CSS3 matrix3d transformation support

I need to convert SVGs to PNGs from a Python script. There are plenty of tools for this, the ones I tried (I'm on Ubuntu): inkscape (Inkscape command line) rsvg-convert from librsvg2-bin convert (which is ImageMagick) But none of these support the…
neo post modern
  • 2,262
  • 18
  • 30
3
votes
2 answers

MATLAB M x N x 24 array to bitmap

I am working in MATLAB. I have a an array of M x N and I fill it with 1 or 0 to represent a binary pattern. I have 24 of these "bit planes", so my array is M x N x 24. I want to convert this array into a 24 bit M x N pixel bitmap. Attempts…
tomdertech
  • 497
  • 1
  • 9
  • 27