From owner-freebsd-questions@FreeBSD.ORG Wed Jan 9 12:45:56 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E2F2F7F1 for ; Wed, 9 Jan 2013 12:45:56 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-ob0-f177.google.com (mail-ob0-f177.google.com [209.85.214.177]) by mx1.freebsd.org (Postfix) with ESMTP id B5E69D1B for ; Wed, 9 Jan 2013 12:45:56 +0000 (UTC) Received: by mail-ob0-f177.google.com with SMTP id uo13so2108168obb.22 for ; Wed, 09 Jan 2013 04:45:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=X8US8T/+GlpzkHWrArNz/MGPMdP6Hmvs65c1BLtVCUo=; b=hoR8HnIi62J4Ss3BeC+8K5lvlGuLRhd4rMDm4cNpiaxNcz617DzZh7xEnTvgQMA3PP GgrfN28nvc4IsUMFE1G9rFIGi/kkTT2RdLjZlkvBXqVdzWAUpiatJ7vVFGmiT605ilSx QTs034VUyWlAX+6qZaxohY3fNRT1Qino0KI/MuvHEsXmjUhXlNmoEmV6CGo2PuuIfr4T H4BKdSWlE2ztG+fPQL6BkvZ3oPgkEUeVkITeH+l0nAMcCin1/UF+vBz1SfCh3X23i/Ye X6csV6I7byTZo4Bj92D1+BqB+6TJ1XEwe2gL2CJj4VfaU+nuQsu6JOdz6vECMuETp7SN FPng== MIME-Version: 1.0 Received: by 10.182.113.101 with SMTP id ix5mr10120742obb.73.1357735556096; Wed, 09 Jan 2013 04:45:56 -0800 (PST) Received: by 10.76.34.38 with HTTP; Wed, 9 Jan 2013 04:45:55 -0800 (PST) In-Reply-To: <448v82vkxc.fsf@lowell-desk.lan> References: <448v82vkxc.fsf@lowell-desk.lan> Date: Wed, 9 Jan 2013 06:45:55 -0600 Message-ID: Subject: Re: change an image or convert it to metapost From: Antonio Olivares To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2013 12:45:56 -0000 On Wed, Jan 9, 2013 at 2:07 AM, Lowell Gilbert wrote: > 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. Actually, the problem is that the placement of the figure is not where I want it to be. With a correct and true EPS and the 'h' option would give a very good placement. It would still be nice to produce a metapost file and scale it to fit nicely and place text next to it, but I am guessing that I am hoping for some miracles. Regards, Antonio