Перейти к содержанию
Симферопольский Форум

Рекомендуемые сообщения

Опубликовано
Подскажите кто знает, через что можно корректно перегнать 204 .jpg файла с цветовым пространством Abode RGB 1998 в .jpg но с цветовым пространством SRGB если средствами фотошопа, можно ли как то автоматизировать процесс? что бы не приходилось каждый перегонять в ручную, или путём акшена ? или же есть сторонние программы для этого?
Опубликовано

ImageMagick

 

http://www.imagemagick.org/script/formats.php

 

 

 

A majority of the image formats assume an sRGB colorspace (e.g. JPEG, PNG, etc.). A few support only linear RGB (e.g. EXR, DPX, CIN, HDR) or only linear GRAY (e.g. PGM). A few formats support CMYK. Then there is the occasional format that also supports LAB (that is CieLAB) (e.g. TIFF, PSD, JPG, JP2). To determine the colorspace of your image, use this command:

 

 identify -verbose image.jpg
 Image: image.jpg
 Format: JPEG (Joint Photographic Experts Group JFIF format)
 ...
 Colorspace: sRGB

 

OR use the appropriate percent escape

 

 convert image.jpg -print "%[colorspace]\n" null:
 sRGB

 

When processing an image, be aware of the colorspace. Many image processing algorithms assume a linear RGB colorspace. Although you may get satisfactory results processing in the sRGB colorspace, you may get improved results in linear RGB (essentially sRGB with the gamma function removed). For example,

 

 convert image.jpg -colorspace RGB -resize 50% -colorspace sRGB resize.jpg

 

As of IM 6.7.8-2 one can properly work in LAB colorspace whether or not Imagemagick is HDRI-enabled. Essentually the A and B channels are stored with a 50% gray bias, to allow it to handle the negatives required by the format.

 

 convert lab.tif -resize 50% resize.jpg

 

Again, it may not make sense for some image processing operators to work directly in LAB space, but ImageMagick permits it and generally returns reasonable results.

 

Prior to IM 6.7.8-2, the A and B channels has a discontinuity, making them non-linear. As such to process such images, you needed to first convert the colorspace some other linear colorspace, before apply your processing operator. Afterward you can transform back to the LAB colorspace. For example,

 

 convert lab.tif -colorspace RGB -resize 50% -colorspace Lab resize.jpg

 

  • 2 недели спустя...
Опубликовано

слишком сложно для просто фотографа а не php программиста, выше написал способ в разы легче чем ваш

 

кому-то удобно, а кому-то - нет.

 

я отвечал не конкретно вам, а вообще.

 

и о php программистах я ничего не говорил.

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.
Примечание: Ваш пост будет проверен модератором, прежде чем станет видимым.

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

Загрузка...
×
×
  • Создать...