ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Mikhail Arkhipov <crazymik@online.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Вращение картинок с mogrify
Date: Mon, 28 Jul 2003 17:50:07 +0400
Message-ID: <200307281750.07618.crazymik@online.ru> (raw)
In-Reply-To: <Pine.LNX.4.53L.0307281358360.3079@localhost.localdomain>

В сообщении от Понедельник 28 Июль 2003 14:00 Igor Moskalev написал(a):
> On Mon, 28 Jul 2003, Igor Moskalev wrote:
> > Здравствуйте, уважаемое сообщество!
> >
> > Возникла задача повернуть 1000 картинок на 90 градусов.
> > Картинки
> > изначально в формате jpg. Я делал это так:
> >
> > for I in `ls *.jpg`
> > do
> > mogrify -rotate 90 $I
> > done
> >
> > Однако как я не бился с man ImageMagick, man mogrify
> > etc., я не смог
> > понять, как проделать эту операцию без потери разрешения
> > картинок.
> >
> > Вот, например, два файла -- оригинальный и повернутый --
> > и их размеры:
> >
> > [igor@localhost tmp]$ ls -l proba00*
> > -rw-r--r--    1 igor     igor        99406 Июл 28 11:50
> > proba00a.jpg
> > -rw-r--r--    1 igor     igor       216986 Июл 28 11:50
> > proba00.jpg
> >
> > При этом, если вращение провести "вручную", в gimp или в
> > том же
> > ImageMagick, то потери качества почти не происходит.
> >
> > Все возможные man-ы читал внимательно и много раз, провёл
> > кучу
> > экспериментов и облазил весь google -- решения не нашёл.
> >
> > Может нужно сначала перевести картинки в другой формат?
> > (tif
> > какой-нибудь?)
>
> Хе..., именно так и вышло... Сначала конвертируем в tif, а потом уже
> вращаем и получаем нужую картинку без потери качества.
>
> > Заранее всем большое спасибо за советы.
>
> Не за что :-))

С прискорбием должен отметить, что в мире Linux (Win и MAC) 
нет средств для работы с jpg без потери качества. Теоретически это 
невозможно. Прогон через tif с тонкой обработкой, пожалуй, единственный 
способ.

С уважением, Михаил.

PS: Если честно, то это годится для форматной полиграфии. В остальных 
случаях некритично.

  reply	other threads:[~2003-07-28 13:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-28 16:56 Igor Moskalev
2003-07-28  8:30 ` Mike Lykov
2003-07-28  9:51   ` Igor Moskalev
2003-07-28 18:11   ` Igor Moskalev
2003-07-28 10:00 ` Igor Moskalev
2003-07-28 13:50   ` Mikhail Arkhipov [this message]
2003-07-28 15:34     ` Re[2]: " Maksim Otstavnov
2003-07-29  8:00       ` Igor Moskalev

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=200307281750.07618.crazymik@online.ru \
    --to=crazymik@online.ru \
    --cc=community@altlinux.ru \
    /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