ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Anton Farygin <rider@altlinux.com>
To: community@lists.altlinux.org
Subject: Re: [Comm] очистка сканов для DJVU
Date: Tue, 10 Mar 2009 10:00:52 +0300
Message-ID: <gp53b7$n3v$1@ger.gmane.org> (raw)
In-Reply-To: <op.uqjiecy6y60z1c@oc.peooc.net>

Aleksander Gorohovski пишет:
> On Mon, 09 Mar 2009 21:34:00 +0200, Sergey Vlasov wrote:
> 
>> On Mon, Mar 09, 2009 at 07:19:06PM +0200, Aleksander Gorohovski wrote:
>>> Одного не пойму почему автор выбрал эти форматы?
>>
>> Скорее всего, из-за их крайней простоты для чтения и записи без
>> использования дополнительных библиотек.
>>
>>> Ведь при преобразованиях туда обратно (из tiff а затем опять в
>>> tiff) может качество пострадать.
>>
>> Если в TIFF используется сжатие без потерь - не пострадает (хотя
>> любая дополнительная информация, кроме собственно пикселей
>> изображения, потеряется - например, разрешение при последующем
>> преобразовании в другой формат придётся указывать отдельно).
> 
> unpaper
> потестировал
> 
> В целом оказался довольно хороший, полезный инструмент.
> 
> Правда пока так и не понял как можно задать срезку слишком широких
> полей у сканов
> ?

делал буквально вчера, идея примерно такова:

for i in sicp-000???.pbm;do convert -crop 850x1250+170+120 $i crop-$i;done

параметры для crop подбираются экспериментальным путём, на одной картинке.

что бы не мучать документацией: 850x1250 - это размер после crop'а, 
+170+120 - координаты верхнего левого угла.



  reply	other threads:[~2009-03-10  7:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-09 15:41 Aleksander Gorohovski
2009-03-09 17:01 ` Sergey Vlasov
2009-03-09 17:19   ` Aleksander Gorohovski
2009-03-09 19:34     ` Sergey Vlasov
2009-03-09 19:43       ` Aleksander Gorohovski
2009-03-10  7:00         ` Anton Farygin [this message]
2009-03-10  8:52           ` Aleksander N. Gorohovski
2009-03-10  8:01 ` Gleb Kulikov
2009-03-10  8:42   ` Aleksander N. Gorohovski
2009-03-11  9:26     ` Eugene Ostapets

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='gp53b7$n3v$1@ger.gmane.org' \
    --to=rider@altlinux.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git