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
0
votes
1 answer

Arduino eInk Image2LCD - Size of c-array

This Image2LCD software (https://www.buydisplay.com/default/image2lcd) converts images to c-arrays. I want to write this basic operation myself, but I dont understand why the software outputs an array of length 5000 for an input image of size…
Julian
  • 146
  • 2
  • 9
0
votes
2 answers

PHP Convert SVG To Jpg Missing Elements

I am using php imagemagic to convert svg to jpg and i use the below command for the conversion. convert -density 250 source.svg target.jpg I can able to convert svg to jpg successfully but some elements in svg are missing. Please check below…
Aravinthan M
  • 835
  • 1
  • 9
  • 24
0
votes
0 answers

Convert from Base64 to Image, got an error "Parameter not valid"

I have a base64 image as SVG tag, I tried it on online converter and it works fine and image appears, but in code, it gets an error here: image = System.Drawing.Image.FromStream(ms); I don't know why? The base64 is correct! My full method…
0
votes
1 answer

PHP conversion JPG to PNG and reverse, both JPG images should have same sizes as PNG is lossles format

I am using imagecreatefromjpeg() and imagepng() functions to convert JPG image to PNG. After that I am converting that PNG image back to JPG format with imagecreatefrompng() and imagejpeg() functions. As PNG is lossles format, both JPG images before…
Denis2310
  • 939
  • 1
  • 15
  • 41
0
votes
2 answers

Javascript canvas.toDataUrl() not encoding properly in Firefox

I'm trying to take an SVG and convert it to an image/png data url. In Chrome 68 it works perfectly, but in Firefox 61 it renders an empty image with the URL…
Michael
  • 495
  • 1
  • 11
  • 29
0
votes
0 answers

iOS - Color Space - Metal Texture to UI Image - iPhone vs iPad Camera

I'm running into some inconsistency with image conversion in iOS. In realtime, I'm grabbing frames from the camera, converting the pixel buffer to a metal texture, applying effects with metal shaders, viewing it in a metal view, populating the…
Heestand XYZ
  • 1,993
  • 3
  • 19
  • 40
0
votes
1 answer

How to change the bitdepth of jpg image before saving to internal storage in android?

The image below is taken from Officelens as they convert the bit-depth of the image the make a clear Black&white image which is on the top and original image on bottom: But when I try to convert I am getting the output given below: the above…
Rahul
  • 404
  • 4
  • 16
0
votes
1 answer

BMP->conversion->PNG->conversion->BMP (PHP function)

What is the best way in PHP to convert bmp images to png and then to convert back again without losing any information since png is the lossless format? Both BMP images before and after conversion must be the same size. I have used image…
Denis2310
  • 939
  • 1
  • 15
  • 41
0
votes
1 answer

How to convert PPM images to JPG in Matlab?

I have some PPM images (stereo) that I read with imread() and I want to save the same images in JPEG with different Quality factors. Here is my code. %Read PPM image L = imread(filename_L); %Create JPEG Q85 from PPM filename_L85 =…
0
votes
1 answer

Image is not converted from Uri to Bitmap image in UWP

I have referred the below thread for combing multiple images as single image in uwp. Merging multiple Images But the image is not properly converted from Uri to bitmap images for the tiles downloaded from below…
Devi M
  • 39
  • 5
0
votes
0 answers

Converting image from array to bitmap, offset can't be properly set to 54

I am using the MiniLibX for a Raytracer school project. I want to take snapshots of my Raytracer and store them into ".bmp" bitmap files. I am following a very useful guide i found on the net :…
0
votes
0 answers

Convert Tif to JPEG cause wrong image colors

I´m using JAI to convert a tiff file into ajpeg file, but when the file is converted the colors are totally wrong. What´s wrong with my code? Is this a JAI Bug? When converting to PNG the file colors are working fine. try { FileSeekableStream…
Mister B
  • 123
  • 2
  • 15
0
votes
0 answers

Convert image to png and then again to original type - Laravel, PHP

I am using image intervention in laravel to upload and convert image(jpg, bmp, gif) to PNG type, after upload png image can be sent to another user. User who receives image will then convert that PNG image to original uploaded type back. For…
Denis2310
  • 939
  • 1
  • 15
  • 41
0
votes
1 answer

Get base64 image from URL with Javascript

I have a snippet, that requests an image from a URL: var toDataURL = url => fetch(url, {mode: "no-cors"}) .then(response => response.blob()) .then(blob => new Promise((resolve, reject) => { const reader = new FileReader() …
marchello
  • 2,016
  • 3
  • 29
  • 39
0
votes
0 answers

I need to create a bitmap in c code in NDK

So my issue is that I get for a video call the frames in my c code as a byte array of I420. Which I then convert to NV21 and send the byte array to create the bitmap. But because I need to create a YUV Image from the byte array, and then a bitmap…
rosu alin
  • 5,674
  • 11
  • 69
  • 150