A tool that converts PNG8 back to PNG32 - png

I have an image in PNG8 format with alpha transparency and want to edit it. In order to open it in GIMP without loosing quality I would need to convert it to PNG32. Anyone knows tool that does this?

With LEADTools you can convert png 8 to png 32, I don't know exactly how it works, but I think you can find information of the program.
You can download it free here

Turns out that Adobe Fireworks does the trick.
And here is more info: https://superuser.com/questions/265697/convert-compressed-png-8-back-to-png-24

Related

Swift saves bmp as “Flip row order”

I'm using Swift in iOS and used the code based on this SO post to save a UIImage as a bmp
Convert UIImage to NSData and convert back to UIImage in Swift?
The data I create and save is recognized as a bmp in Photoshop and Preview but can’t be read by the Adafruit PyPortal. The only diff I can find is that when I resave the bmp in Photoshop as a bmp again, it shows as “Flip row order” selected in the BMP options screen that appears right after the main save screen.
If I uncheck this option and save the file, the PyPortal can then read this resaved file. This post above was great for getting the UIImage into .bmp format, but I need to get this additional file change done programmatically on iOS, so opening in a third-party product, or working with shell commands won't work as a solution. I’ve not been able to find anything in Apple’s docs that looks like it corresponds to Flip row order and there isn’t much online about this option within Photoshop so it’s unclear even what this does.
For the curious I have samples of the bmp my app creates as well as options resaved or run through an online converter (both these options work on PyPortal).
https://drive.google.com/drive/folders/1DQYes-cJXKm3ue8Z9cACDLEN5bxnnkJc
Any suggestions are appreciated. Thx!
The “Flip row order” option tells the bmp reader software to read the first row of pixels first and the last row of pixels last. This is not the “normal” way most bmp reader interpret a bmp format image. Most implementations read from the last row first and then work its way up to the first row of pixels.
Your options are either, rewrite the bitmap creating software so that it matches the abilities of the bmp reader software or change the bmp reader software so it can read the bmp file.
I’m fully aware this doesn’t solve the issue but can help understanding what it going wrong and guide you in the right direction.

Convert Dicom image to to jpg,png

I have to convert a DICOM image into any supportable format for UIImageView such as JPG, PNG, etc. Are there any frameworks to implement in iOS for iPad?
I found ITK useful to do this but still I don't know how use ITK to implement this.
The only opensource DICOM library I know of is Imebra; it claims support for Windows and OSX only, but as a C++ library I can't foresee any major difficulties with porting it to iOS.
There is one open source Lib "GDCM", you can check this ANS How to display DICOM files in a view on iPhone.
Even i have not tried my self, but seems to be right way to go.
By the way, have you tried what "Benjamin Mayo" answered ? was imebra usful to you ?

imagemagick monochrome convert in iPhone

I have an image in the iPhone that I need to convert to monochrome. The images are photographs of documents and I need as clean a conversion as I can get.
My first solution did a pixel for pixel compare with a threshold, and while it does the conversion fine, shadows can overwhelm the image.
My next trial is to use imagemagick, hoping that there are various noise reduction/despeckle filters that I can apply to clean the image up, which is what this guy is doing.
I have imagemagick running on the iPhone and can apply "MagickWand" methods with no problem. My issue is that I don't think there is one built in that will do what I want. So I turn to the ConvertImageCommand but am lost on how to actually use it.
So I am looking for any guidance or examples. Thanks!
It turns out what I've been looking for is Adaptive Thresholding in my conversion to monochrome.
Chris Greening has created an image processing library that handles this quite well.
So no imagemagick needed.

Is there a way to recognize text in a graphic or a picture with tesseract?

First, sorry for my English. I have a question regarding tesseract. Is there a way to recognize text in a graphic or a picture without having to clean the image you want to recognize? in what I read there to clean the image first, remove graphics and photographs and leave only the text. But I want the user to upload to the server and newspaper clippings you can recognize this news without human intervention. It can be tricky. But if you know any other way I could do as they are grateful. Thank you very much
No, you can't.
Tesseract is made for reading text and only text. When you perform OCR on a subject with both text and an image, Tesseract spits out things it finds in the image (garbled crap).
You can detect image regions and crop them out, though. I think that would be a better question to ask.

Transparency in PNG recognized in some apps but not others

I have a png image, which you can see here:
http://img10.imageshack.us/img10/9145/archer5.png
The background of the sprite is transparent, I see this on all my browsers and in infranview (which I used to create this), and gimp and windows explorer.
However in Photoshop, Paint, and most importantly PHP GD there is a solid background. Check out the image with one of those applications to see what I'm talking about.
The thumbnails produced on my server are all solid background, not good.
What can I do to make the transparency be recognized by all applications?
Thanks.
Note: I also have 2000 of these images that needs to undergo the same operation. Any batch suggestion would be great as well.
Edit: Sorry guys I apologize for my ineptness! WRONG FILE!
I updated the link with the correct file, sorry!
It has a transparent background in Photoshop for me. I'm guessing that if it isn't transparent in some application, it is a problem with the application (not supporting transparency) than with the file.
It's transparent for me too.
MS Paint doesn't support transparency
As you mention PHP GD check this links
Preserve PNG image transparency
Resize and Compose Transparent PNG with PHP
imagecolortransparent PHP Manual
imagealphablending PHP Manual
imagesavealpha PHP Manual
GD requires one of various options (either directly or in the image type when you create a new image) in order to output transparent pixels.
I think your problem is the applications themselves. When you say PHP GD I think what you really mean is "Internet Explorer" (since PHP is not a viewer). Internet Explorer (at least up to IE7) doesn't do transparent PNG (it puts a grey image behind) unless you do some quirky bullshit with an Alpha filter.
This is your (updated) image in safari (which supports PNG correctly):
(source: arc.net.au)
Perhaps you could try saving them as 24-bit PNGs, instead of 32-bit. Maybe PHP GD would have better support for that.