Skip to main content
removed tag from title, some formatting/text touch-ups
Source Link
user1693593
user1693593

Javascript - Convert png base64PNG Base-64 string to tiff base64TIFF Base-64 string

I'm using a plugin that returns a pngPNG encoded base64 string, I cannot change it, I must work with it, but what I really need is the tiff encoded value (base64base-64). Is there a way of doing this?

I tried to create a canvas, load the png base64 and then used toDataUrl('image/tiff')toDataURL('image/tiff') but after some research, I'd found that tiff is not supported as output of toDataUrltoDataURL().

Any suggestions?

Javascript - Convert png base64 string to tiff base64 string

I'm using a plugin that returns a png encoded base64 string, I cannot change it, I must work with it, but what I really need is the tiff encoded value (base64). Is there a way of doing this?

I tried to create a canvas, load the png base64 and then used toDataUrl('image/tiff') but after some research, I'd found that tiff is not supported as output of toDataUrl.

Any suggestions?

Convert PNG Base-64 string to TIFF Base-64 string

I'm using a plugin that returns a PNG encoded base64 string, I cannot change it, I must work with it, but what I really need is the tiff encoded value (base-64). Is there a way of doing this?

I tried to create a canvas, load the png base64 and then used toDataURL('image/tiff') but after some research, I'd found that tiff is not supported as output of toDataURL().

Any suggestions?

Source Link
MrCujo
  • 1.4k
  • 4
  • 46
  • 88

Javascript - Convert png base64 string to tiff base64 string

I'm using a plugin that returns a png encoded base64 string, I cannot change it, I must work with it, but what I really need is the tiff encoded value (base64). Is there a way of doing this?

I tried to create a canvas, load the png base64 and then used toDataUrl('image/tiff') but after some research, I'd found that tiff is not supported as output of toDataUrl.

Any suggestions?