EzDevInfo.com

vector-graphics interview questions

Top vector-graphics frequently asked interview questions

How can I identify fonts from an image? [closed]

Many times I come across bitmaps with nothing but text paragraphs, so I was looking for a way to identify the font used, the paragraph alignment, line spacing and color, bold, italics.

Would an OCR package allow me to do that?

If not, what other options do I have?


Source: (StackOverflow)

How can I convert a PNG to a vectorized image?

This is the best I've found so far: http://www.tlhiv.org/rast2vec/

It works otherwise ok except that it does not support PNG transparency (it's simply gone in the resulting vector).


Source: (StackOverflow)

Advertisements

Inkscape: how to create inner border?

I create figure and set border width to 1px.

My image actual size is 100px. But with border this is 102px. How to set inner border instead of outer border? In Protoshop I can select type of border - inner, outer or center. But in Inkscape I have not found this option.


Source: (StackOverflow)

How can I save a website as a vector graphic?

I'm looking for a solution to save a single web page or a section of it as a vector graphic in my latex document. Do you know a tool, trick or service which helps to do this?


Source: (StackOverflow)

Corel Draw alternatives [closed]

Corel Draw is a really good vector graphics application but its price is a 'bit' high. Could you recommend me some alternatives? I only know InkScape from out of the blue.. and it's a bit behind Corel Draw. :)

Commercial alternatives are also 100% fine.


Source: (StackOverflow)

how to rotate an SVG file 90 degrees?

I printed out a diagram from MATLAB and it's rotated 90 degrees clockwise from where it should be.

Is there software that can help me fix this and rotate an SVG file?

I tried tweaking the SVG manually using a <g transform='rotate 90'> element around the whole thing, but it doesn't handle the translation or bounding box correctly and I can't figure out how to get it right.


Source: (StackOverflow)

How can a site run without Internet?

I came across this site http://www.desimartini.com/allaboutrajni.htm which requires me to disconnect from Internet to see the action! I am surprised as the site has quite an amount of content and seriously doubt if it can cache everything to my browser in few seconds. Can someone help me in understanding how such sites are built? enter image description here

To add to this the site stops working after I reconnect to Internet!


Source: (StackOverflow)

Insert PDF image in MS Word

I have a .doc which I will convert in PDF. In this .doc I have an image.

When I convert the doc to PDF and then zoom it, the images became ugly pixel-ized.

I found a tool that converted my bitmap .png image to vectorial .PDF image.

Now how could I import the PDF image in MS Word (that finally I will convert to PDF once again)?


Source: (StackOverflow)

Export Excel graphs as vector graphics files (e.g. SVGs)?

How can I export a graph generated in Excel as an editable vector graphics file, e.g. a SVG?

When I right click on a graph in Excel the 'Save as Picture...' option only gives non-vector formats (like PNGs and JPGs) as options.

The only resource I've found on this is http://www2b.abc.net.au/science/techtalk/newposts/790/topic790744.shtm where no one gives a real answer. Just like the questioner there, I don't mind if it's a multi-step process eg. Excel -> Open Office -> SVG or Excel -> pdf -> SVG.


Source: (StackOverflow)

Converting from EPS to SVG format

What is the best way to convert from an EPS formatted vector graphic to an SVG formatted graphic using only freely available tools?


Source: (StackOverflow)

How to extract vectors from a PDF file?

I have a PDF file with vector images inside it. (I downloaded it from the internet, so I do not have any originals.)

I wish to extract the vectors so that I can overlay them on some other images; use them in print media, or on a website.

How do I extract the specific vectors from the PDF file?

Is there, perhaps, any software which can extract the vectors from a PDF file? (Preferably free.)


Source: (StackOverflow)

Can I take a screenshot as vector graphics or at a higher resolution than native?

I need to take some screenshots of an application window. My laptop resolution is low, and I'd like to get high quality images.

Is there a way to grab the screen as vector graphics (e.g. EPS, PDF, SVG)? Alternatively, is there a way to take a screenshot with higher resolution than the native one?

My native resolution is 1366x768, while I'd need at least a resolution of nearly 4000x3000.


Source: (StackOverflow)

Graphics in papers

I have always wondered with what programs do people do their graphics when they publish papers. They most of the time seem to be embedded in some way as vector graphics, I'd say, as when I try to zoom the pdf it seems it computes the image in the moment, it doesn't seem to be a image. From their aspect they don't seem to be just print screens of Mathematica plots.

Here are some examples of what I mean:

alt text

alt text

Anyone knows what should I use to be able to do similar graphics?

(I've put a latex tag as I believe it has something to do with it)


Source: (StackOverflow)

Best way to describe vector vs raster

Many times at work, someone will ask me if they can get an image (company logo, for example) in EPS or SVG format. They assume that since I put the image on the company site, that I could easily convert it to the format they need and send it to them.

Obviously, the problem is that the original image is a raster format and they're asking for a vector image. I often find myself having trouble explaining why I can't fill their request. Especially without giving a bunch of technical terms that I'd have to explain.

I'm not looking for an answer on how to convert JPG to SVG or similar but rather an easy-to-understand explanation of why the process isn't as straightforward as it seems.

Please help me straighten this out. Thanks!


Source: (StackOverflow)

How do I typeset equations in Word as pretty as LaTeX does?

This might be the N+1 th question about how to put vector graphics and/or equations in MS Word, but none of the solutions I found on the net satisfy me.

My ultimate goal is to be able to embed Latex equations into a MS Word 2013 document, because I'm stuck to a Word template I need to use, and because Word's equations look ugly. It's already lame to resort to "insert->image" every time I need an equation, but it seems that I don't have much choice. What I've tried:

  • Because I use Word 2013, I can't use TexPoint

  • MS Word equations look terrible compared to Latex.
    in Word: Word equation

    in Latex: Latex equation

  • Converting my pdf into .ps or .eps directly (either via pdf2ps, via Illustrator, or Acrobat), results in a completely messed up result, once in Word:
    without embedding fonts: EPS no fonts

    with font embedding: EPS with fonts 1
    (note that this is not ok, the integral lines are distorted, the 1 is ugly...)

    with font embedding, but just another equation: enter image description here
    (note that all the latex fonts used are in my Windows\Fonts directory anyway)

  • Converting the equations into vector graphics (i.e., in Illustrator, Types->Create Outlines) , there should be no font problem, but the result still looks bad once in Word (in Illustrator and other programs, it always look good) :
    EPS Vector 1 EPS Vector 2

  • Same as above, but converting to wmf, it's almost ok, but some characters are still distorted: Vector WMF

  • Same as above, but converting to emf, it's even better, but still, the B of the second equation is also destroyed:

Vector EMF 1 Vector EMF 2
when I export into PDF, it's degraded a bit, albeit near ok. Exported to PDF 1

I know that once exported to PDF, the rendering of Word vector graphics are supposed to look better, but they really do not in general.

Of course, I do not want a solution which rasterizes the images: that's not the point of vector graphics, the solution is bad and should not be used, and it can significantly increase the output size: Here, Eq 1 is rasterized, inserted in Word and exported in a PDF using Word's pdf exporter (with all high quality options, and it looks similar with other pdf exporter such as Nitro or Adobe pdf): Raster
It obviously looks... rasterized and blurry. The file size has increased to 200 KB (no, I do not have a single equation, and Nitro once managed to output a 300 MB pdf with all my rasterized equations which still looked blurry).

I'm ready to give up and use the best of the solutions above (Vectorized and exported in EMF), but I'd like to know if a better option exists at all.

If you have an option which just allows for using Word's equation editor, and change the font to use Latex's symbols, I'd also be extremely happy.

[[EDIT: Jukka K. Korpela's answer is almost what I am looking for. Unfortunately, when I use this solution and export to PDF using Word, I get:
XITS PDF
If I further constrain the PDF to be PDF/A compliant (which I'd ideally need), the result is even worse: XITS PDF/A
where I have put some context around the equation: the line of text above the equation is half cleared. If I print to PDF instead, the rendering is ok, but I loose all the links in my document, so that's not an option. ]]


Source: (StackOverflow)