From owner-freebsd-questions@FreeBSD.ORG Wed Jan 9 08:07:51 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 73A2DFB for ; Wed, 9 Jan 2013 08:07:51 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id 145CE8F5 for ; Wed, 9 Jan 2013 08:07:50 +0000 (UTC) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.39]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id 31B64A718C0 for ; Wed, 9 Jan 2013 03:07:50 -0500 (EST) Received: (qmail 15485 invoked from network); 9 Jan 2013 08:07:49 -0000 Received: by simscan 1.4.0 ppid: 13091, pid: 224, t: 0.1814s scanners: clamav: m: Received: from unknown (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 9 Jan 2013 08:07:49 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.8]) by be-well.ilk.org (Postfix) with ESMTP id F235A33C1D; Wed, 9 Jan 2013 03:07:43 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 887A439829; Wed, 9 Jan 2013 03:07:43 -0500 (EST) From: Lowell Gilbert To: Antonio Olivares Subject: Re: change an image or convert it to metapost References: Date: Wed, 09 Jan 2013 03:07:43 -0500 In-Reply-To: (Antonio Olivares's message of "Tue, 8 Jan 2013 19:46:15 -0600") Message-ID: <448v82vkxc.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: FreeBSD Questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2013 08:07:51 -0000 Antonio Olivares writes: > Dear folks, > > Is it possible to change an image: > > http://www.valleycentral.com/uploadedImages/kgbt/Sports/Videos/GatorLogoJPEG.jpg?w=440&h=330&aspect=nostretch > > To metapost? so that it could be processed by metapost? > > I have referenced this page > > http://matagalatlante.org/nobre/hyt/mpost.html > > but I don't have some of the programs referenced there. If someone > that is experienced in metapost or other language that can convert the > graphic to metapost it would be very nice. I have converted the image > to EPS(encapsulated postscript) but the image does not fit nicely in > *.tex documents and I would prefer to have a native one created by > metapost or similar. Metapost contains more information than JPEG. There's no way to derive a whole model from a flat image, so converting the former to the latter doesn't really make sense. For that matter, JPEG is a pixel-based format, so it's not going to scale in the document as well as something that's based on vectors or curves. It would probably look okay if the original image were much larger and getting scaled down. The usual thing to do here is probably to make sure the image gets used at its normal resolution. This is really a TeX (or LaTeX) question. Unfortunately, my set of documents in easy reach is too old to cover how to do this, so I can't give you the formula offhand. Good luck.