Convert latex JPG to EPS

Source: Internet
Author: User

Use latex to insert images in pdf. The most convenient format is EPS.

Because JPG format is common, it is necessary to convert JPG to EPS.

In Windows, there seems to be very few tools to achieve this conversion, but Google cannot find anything. I remember I used to find this conversion tool once, but I didn't find any good tools, I found a self-implemented Conversion Tool on someone's blog, which is very simple. It provides the batch conversion function for JPG files under a directory, which can be used all the time, although it is not convenient, for example, you cannot remember to open a directory each time. If you open a directory multiple times, it is very troublesome to select a path every time. However, a large number of images are used in this article, which are distributed in multiple directories and there is nothing to select. However, some JPG images are not converted, and some images can be converted in the same directory, some will prompt an error: can not open output file. No way. You have to find another method.

 

When I went to Google again, I still couldn't find any good ready-made tools, but I found three commercial tools. I was very happy to find none, but I was disappointed when I downloaded and installed them. They are imageconvertplus, reaconverterpro, and vector-magic desktop edition. The first two can be converted, but the generated image is marked with a logo. Is it necessary to include the logo of his old man in the article? Really. It will be deleted immediately. I forgot which one is, as if it was imageconvertplus. After installation, I will add the conver to command item in the right-click shortcut menu. After uninstallation, something went wrong and I don't know where it changed my computer, it may also be because of the monitoring of my anti-virus software. After uninstalling (not restarting), right-click the icon and the shortcut menu will be stuck for a long time. Then, the system prompts that the behavior has been stopped and cannot continue, disable the entire explorer process. My anti-virus software is little red hat.

As for the third, that is, the vector, the trial version does not provide the SAVE Function after converting the image, just let me see it! Too bad.

 

Find a page that provides format conversion and perform conversion on the Web interface. The address is http://www.tlhiv.org/rast2vec /. Unfortunately, only files can be transferred one by one. Sorry, I turned dozens of images one by one.

 

Another page that provides similar functions is http://www.converthub.com/jpgtoeps.php, Which is useless.

 

Http://potrace.sourceforge.net/ a tool that supports conversion, including linuxand windows. After the Windows version is downloaded, decompress the package without installation. However, after double-clicking the executable program file, a DOS window is displayed without any prompts. I don't know how to use it. Haha. The page is very standard. Maybe I haven't figured out how to use it.

 

There is also autotrace at http://autotrace.sourceforge.net /. I didn't use it. I don't know.

 

In short, yesterday, almost all of them were looking for and trying to solve this problem. It took a lot of time and did not find a good solution.

 

 

Continue searching today, because yesterday it seems that ghostscript can do this function, but I still don't quite understand what ghostscript does.

Install ghostscript and gsview, and then read the documentation of ghostscript, which is full of English and roili, old elders who are not interested in reading it.

I finally found a few Chinese sentences.

-----------------------------------------------------------------

PDF production and reading:
Commercial Software: Adobe Acrobat
Alternative: Use Adobe Reader (free of charge) to create a ghostscript (Open Source) + ps printer driver (Windows built-in)
I am not sure if you are familiar with Adobe Reader. You can use these two methods. Of course, it cannot be edited. You cannot add bookmarks. The production method is very simple. First install a ps printer driver. When printing, select print to the file. The PS file will be generated, and then convert it to PDF using ghostscript. You can right-click the menu to make the image easy.

-----------------------------------------------------------------

 

I tried it for a while, but I still haven't figured out how ghostscript can convert JPG to EPS.

Continue searching. Baidu is used this time. The keyword is "ghostscript image EPS"

Find a blog post and say latex itself provides a tool for conversion, called bmeps.

 

The article is as follows:

Bytes -----------------------------------------------------------------------------------

From http://hi.baidu.com/sxpspace/blog/item/b3783cdeedf8d45194ee37c2.html

Conversion of PNG, JPEG, GIF, and EPS formats

Windows Platform

If you are a friend of latex, we usually need to convert the JPEG, PNG, and GIF formats we have encountered into the EPS format. The following describes how to help you.

To convert JPEG, PNG, and GIF to the EPS format, we recommend that you use the bmeps command line tool, which is much easier to use than clicking a point with the mouse. It is more convenient to process multiple files. It is included in the ctex installation package.
For more information, see its help.
Bmeps-H for help.

Worker, which can be entered in cmd

Gswin32c-dbatch-depscrop-sdevice = png256 -soutputfile=tiger.png tiger. EPS

Note: The command is case-sensitive. To maintain the original proportion of the EPS image, add "-depscrop". It will generate a determined image size based on the boundingbox of the EPS.

GNU/Linux platform

The best tool for converting JPEG, PNG, and GIF to the EPS format is imagemagik. It is powerful and I am exploring it.
Install
Sudo apt-Get install imagemagik
Use
Convert tiger.png tiger. EPS

Convert the EPS format to many formats such as JPEG, PNG, and GIF, or use ghostscript to input

GS-dbatch-depscrop-sdevice = png256 -soutputfile=tiger.png tiger. EPS

Get started!

Bytes -----------------------------------------------------------------------------------

 

 

I tried it, but it seems that a lot of JPG-generated EPS is only part of the original image.

We also need to study it well.

 

It is inconvenient to install imagemagic in windows. It is troublesome to compile the source code and use the latest Visual Studio compiler.

 

Find a new conversion tool today, which can be converted in the command line mode. 20172ps, address is http://www.pdflib.com/download/free-software/jpeg2ps/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.