From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NKY7j-0003ko-Cs for garchives@archives.gentoo.org; Tue, 15 Dec 2009 14:11:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0280CE0BEB for ; Tue, 15 Dec 2009 14:11:35 +0000 (UTC) Received: from mail-bw0-f215.google.com (mail-bw0-f215.google.com [209.85.218.215]) by pigeon.gentoo.org (Postfix) with ESMTP id 69778E08EC for ; Tue, 15 Dec 2009 14:00:10 +0000 (UTC) Received: by bwz7 with SMTP id 7so3020607bwz.26 for ; Tue, 15 Dec 2009 06:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=jatjVzVI+HjXaLl6S+oGJSI3vX6SgROIb+3q0inqoCU=; b=dqvykAejtJGmxBt0Wy8K08WhdMXxMEt+v4efpcnD1ZxdwBsSgY68b22bBXtdvgXon5 2SO/nLHF7UUnj4JHF9VTB/ID1d2GGsFfzh9JMYaTN5ySRAy2wl4MdwtfoZAQRnFngHb8 KWZffdtu2a3PT46EQIt5BZrldeq8Rd9wXTANo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=HdW/qIpEYxpFcPfZNNY5q21dq/3XSFRak/YANJwIvryeWu9jejFy9Pmxl58BJzhssm mheAEDagOjMt0M3pSTQmzsdwjxFEbk4WWghX52DlcJGrlX80/kcn1q0n9wMChHBg8HuW saCOdi31dnotAQ91HOL/zkCAi7xP0cYvipddw= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.204.48.131 with SMTP id r3mr3702578bkf.195.1260885609643; Tue, 15 Dec 2009 06:00:09 -0800 (PST) In-Reply-To: References: <19C9F1BB-65F4-4D4C-8506-160A471F1625@stellar.eclipse.co.uk> <342e1090912141123r5572a3d0t19fb82f69cfc7175@mail.gmail.com> Date: Tue, 15 Dec 2009 14:00:09 +0000 Message-ID: <358eca8f0912150600g3afe2dbeo71f2af3348fbc632@mail.gmail.com> Subject: Re: [gentoo-user] OT: extract an image from a .doc file? From: Mick To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: 47a98d73-027a-4d69-b4d8-92d5491fe28d X-Archives-Hash: 8d8765c42ae909ab23ae032125624b6c 2009/12/15 Stroller : > > On 14 Dec 2009, at 19:23, Daniel da Veiga wrote: >> >> ... >> When I want to extract an image from a doc I save it as HTML. It saves >> images in a separated folder and links it into the HTML. I simply go >> to the folder and check the image. > > When I do this in Open Office the image in the resulting .html document is a > .png. If I do it in Word for Mac it's a .gif, although there appears to be > an option to use .png in the export options. > > I think the image is a bitmap & it's being converted. There's nothing else > in the document that would explain it being 2meg. > > I'll try Renat's suggestion to use ImageMagick's `identify` command > (emerging ImageMagick now), but will just mention it to the customer this > afternoon. I'm guessing that the OOo HTML converter will probably turn images into PNGs. If you want to see what the original format is then open the .doc file using OOo and Save As an ODF file - OOo's open document format. Then unzip it and in the folder that is created amongst other you will find: -Configurations/Images -Pictures -Thumbnails assuming that OOo was successful in converting them to a non-proprietary format. However, if the signature file is a MSWindows embedded metafile you may be out of luck. In that case the only solution is to ask the originators of these files to paste/embed these signature images as a png/jpeg file. Coming to think of it, you may also be able to copy and paste the image after you convert the file into pdf ... but I am not sure if this is going to help with your problem. -- Regards, Mick