IMHO.WS

IMHO.WS (https://www.imho.ws/index.php)
-   Обсуждение программ (https://www.imho.ws/forumdisplay.php?f=3)
-   -   Консольный графический конвертер (https://www.imho.ws/showthread.php?t=74920)

gh0st 03.12.2004 03:45

Консольный графический конвертер
 
Задача:
ЕСть скрипт обрабатывающий файлы. Скрипт вызывает через консоль искомую прогу и передает ей имя граыического файла, прога выдает разрешения файла, если оно больше чем 800*600, то скрипт дает команду переконвертить файл в 400*300. Подскажите пожалкста прогу которая могла бы работать в таком режиме.

Premium 03.12.2004 09:23

nconvert.exe, входит в дистрибьютив XnView. Отдельно тоже можно забрать. http://perso.wanadoo.fr/pierre.g/xnv..._nconvert.html Легче всего наверно батником будет сделать, вроде
@echo off
for /f "tokens=2 delims=:" %%a in ('
nconvert -info %1 ^| find "Width"
') do set mywidth=%%a
echo width this picture: %mywidth%
и если %mywidth% больше 800 , то ресайз этому %1...

STNG 03.12.2004 19:05

gh0st
Не то что ты ищешь?

Цитата:

AutoImager

Batch image processing / conversion software supporting 70+ formats and operations!
AutoImager is a full-featured, advanced batch image processing and conversion application. Over 70 image formats are supported, complete command-line functionality, and an entire arsenal of editing and processing operations present...
Официальный сайт: http://mystikmedia.com/
[deleted by Plague]

Saruman 03.12.2004 19:15

ImageMagick
Цитата:

ImageMagickTM 6.1.5 is a robust collection of tools and libraries to read, write, and manipulate an image in many image formats (over 90 major formats) including popular formats like TIFF, JPEG, PNG, PDF, PhotoCD, and GIF. With ImageMagick you can create images dynamically, making it suitable for Web applications. You can also resize, rotate, sharpen, color reduce, or add special effects to an image or image sequence and save your completed work in the same or differing image format. Image processing operations are available from the command line, or from the C, C++, Perl, Java, PHP, Python, or Ruby programming languages. A high-quality 2D renderer is included, which provides a subset of SVG capabilities. ImageMagick's focus is on performance, minimizing bugs, and providing stable APIs and ABIs.

gh0st 14.12.2004 04:37

спасибо выбрал XnView с аддонами - подошел

WuykoWin 05.08.2005 00:37

Есть така программа, как Konvertor (http://www.konvertor.net). Знает более 900 графических форматов, + кучу видео и звуковых. В сумме более 1000. Причем она есть в версии с графической оболочкой, в виде BAT (для запуска из командной строки) и версия DLL, для вызова из программ.


Часовой пояс GMT +4, время: 13:41.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.