Convert Ai file to png without distorting the text - png

I created an image using Illustrator CC which I am converting into png and placing in an Indesign CC file to then export as pdf. I do 'Save for Web' in Illustrator to convert my ai file to .png. After conversion the text is badly distorted. I changed the font but its still the same. To try out I also placed the ai file in indd and that is distorted too. Can I get some help as to how to convert my file with text intact.

Related

PNG file looks completely different inside of Unity

I purchased the "Set Builder: Back street Manhattan" with came with some png textures such as this one.
When I open the file in the browser or any editing program, it looks completely transparent except for the windows. When I drag the image into Unity, it is completely opaque bricks (which is what I want) If I duplicate the image and drag that image into Unity, it is again completely opaque bricks. If I save a copy of the image with photoshop or another application, the information that contained the bricks is lost and it is now mostly transparent, except it has some blotchy white textures which also aren't seen in the photoshop interpretation. Every texture in this folder is doing this same behavior. Are these files corrupted or compressed? How do I retain the brick information into an image editing program besides taking a screenshot within Unity ? Here is an example : of dragging images onto cubes in Unity. Left is a Photoshop copy. Right is attached image
The developer has not replied to my direct questions.
it can be your texture import format
try changing its format to true color
I found a solution in Photoshop.
Layer>layer mask>from transparency. Then right click on the layer to disable the transparency.

Circle not round any more after export in Libre Office Draw

If you draw a circle in Libre Office Draw, you get a perfect circle. However, if you export it with "File -> Export..." and export it as a "Selection" and save it as a .png or .gif picture the right and bottom part of the circle are not round any more. See the picture below.
What can be done about this? Is there a work-around available?
Inkscape worked for me. Export as vector SVG from LibreOffice, then open in Inkscape and export as raster PNG file. Here is my circle:
The recommendation is from https://stackoverflow.com/a/33726722/5100564. I used the Inkscape GUI rather than the command line commands suggested in the answer.

view svg file in MATLAB as a figure

I have an simple SVG image created with Inkscape.Is there any way to view this SVG image as a figure in MATLAB?or convert the SVG image to any raster format such as JPG,PNG only by using MATLAB?I found exporting a figure to svg. but I want to import svg file as a figure/convert my svg image to any raster form.
Judging by this answer, this is not possible at the moment.
Undocumented Matlab didn't give any results either for possible Java solutions.
The only way is to convert to raster format outside of Matlab (or call the command line from Matlab using system). If you are on a Unix platform, ImageMagick can do that.

GdiPlus::DrawImage stretches image after I have edited it with GIMP?

I use this code to draw a png into my device context:
auto_ptr<Gdiplus::Graphics> g(Gdiplus::Graphics::FromHDC(pDC->GetSafeHdc()));
g->DrawImage(pPng, xDest, yDest, xSrc, ySrc, nSrcWidth, pSrcHeight, Gdiplus::UnitPixel);
This pastes the png just how it's supposed to. I edit the png with GIMP. My function now draws the png stretched. I edit it with mspaint doing the exact same changes. The png is drawn fine.
How does this happen?

Image is getting improperly rendered with inverted colors using itextpdf library

I have an issue with Itextpdf rendering of image..I am trying to render a tiff image to pdf but the image is not getting rendered properly and the rendered image has got inverted colors.
Note:
I havent set the inverted property of image
This issue is happening for few tiff images.
I could not find any clue about fixing it.
Plz help me if anybody encountered similar issue.
thanks,
ntalluri
http://jump.fm/NXPHB
TIFF is a "bad" image type to work with since it is not actually an encoding, but an image container. The inversion of colors could have something to do with the fact that TIFFs can be encoded using a little-endian encoding and big-endian encoding. See http://en.wikipedia.org/wiki/Tagged_Image_File_Format
My suggestion is either to re-encode the pictures to have consistent endians, or just use another format such as PNG.