Search found 12 matches

by anfvan6
Tue Apr 15, 2025 2:29 pm
Forum: NConvert
Topic: Add adaptive binarization function to nconvert
Replies: 12
Views: 1597

Re: Add adaptive binarization function to nconvert


If I understood your question correctly, the output file is in TIF black and white.


Вероятно Пьер имел ввиду, чтобы вы нафотошопили примерно ожидаемый результат, как он должен выглядеть (техзадание так сказать)
Возможно вы ожидаете примерно такой результат:
https://workupload.com/file ...
by anfvan6
Mon Apr 14, 2025 11:50 pm
Forum: NConvert
Topic: Add adaptive binarization function to nconvert
Replies: 12
Views: 1597

Re: Add adaptive binarization function to nconvert

Скорее всего вам нужно воспользоваться программой ScanKromsator. Поищете его на руборд.ком.
Также существуют консольный бинаризатор входящий в Potrace (MKbitmap) potrace.sourceforge.net

English:

Most likely you need to use the program ScanKromsator. Look for it on ru-board.com.
There is also a ...
by anfvan6
Thu Sep 07, 2023 12:21 pm
Forum: NConvert
Topic: Problem with "-l file : Use file as filelist" in v7.154
Replies: 1
Views: 3952

Problem with "-l file : Use file as filelist" in v7.154

There was a problem in version 7.154 with using "-l file : Use file as filelist".
nconvert.exe -recurse -quiet -out pdf -multi -c 1 -binary nodither -l "C:\temp\1.txt" -o 1.pdf
File "C:\temp\1.txt" contains filelist:
C:\MyDocs\20230824_180749.jpg
C:\MyDocs\20230824_180430.jpg
C:\MyDocs\20230824 ...
by anfvan6
Sat Dec 04, 2021 12:28 pm
Forum: NConvert
Topic: Folders and subfolders (Recursion)
Replies: 20
Views: 14091

Re: Folders and subfolders (Recursion)

cday wrote: Sat Dec 04, 2021 12:07 pm If you use:

Code: Select all

-o C:\temp\%%.jpg
??
it works
thanks
by anfvan6
Sat Dec 04, 2021 10:46 am
Forum: NConvert
Topic: Folders and subfolders (Recursion)
Replies: 20
Views: 14091

Re: Folders and subfolders (Recursion)

"C:\XnView\nconvert.exe" -out jpeg -ratio -rflag decr -resize longest 1024 -rtype lanczos -rmeta -overwrite -q 75 -opthuff -dct 3 -smoothingf 0 -subsampling 0 -o C:\temp\%% C:\temp
by anfvan6
Fri Dec 03, 2021 10:09 pm
Forum: NConvert
Topic: Folders and subfolders (Recursion)
Replies: 20
Views: 14091

Re: Folders and subfolders (Recursion)

Thank you very much for the implementation recurse.
I found the small bug: if filename contains a dot (for example: IMG.6736.JPG or 04.12.2021.JPG), then file will be saved without extension (IMG.6736 or 04.12.2021).
by anfvan6
Fri Apr 16, 2021 7:58 am
Forum: NConvert
Topic: Cyrillic characters
Replies: 1
Views: 4278

Re: Cyrillic characters

попробуйте в cmd файле перед обращением к nconvert добавить эти строки:
try to add this strings:
@echo off
chcp 1251 > nul
.\nconvert.exe -canvas #0 #150 bo....
by anfvan6
Mon Mar 08, 2021 2:23 pm
Forum: NConvert
Topic: CMD NConvert All images in the catalog
Replies: 9
Views: 7164

Re: CMD NConvert All images in the catalog

Я схожую необходимость решил следующим решением:

@Echo Off
SetLocal EnableDelayedExpansion
Set DataRoot="%1"
Set OutFile=out.txt
chcp 1251 > nul
For /F "delims=" %%A In ('Dir "%DataRoot%\" /B /A-D 2^>nul') Do (Echo %%~fA>>"%OutFile%")
For /F "delims=" %%A In ('Dir "%DataRoot%\" /S /B /AD') Do ...
by anfvan6
Wed Mar 25, 2020 11:14 am
Forum: NConvert
Topic: Multiple bgcolor
Replies: 9
Views: 4251

Re: Multiple bgcolor

Thanks.
This method is working.
But it significantly increases the processing time. And most likely double conversion in jpeg reduces image quality.
by anfvan6
Wed Mar 25, 2020 10:47 am
Forum: NConvert
Topic: Multiple bgcolor
Replies: 9
Views: 4251

Re: Multiple bgcolor

In XnView batch converter double canvas resize works properly.
Export to bat contains with code:
nconvert -npcd 2 -size 256x256+0 -ctype rgb -corder inter -out jpeg -bgcolor 0 0 0 -canvas 101%% 101%% center -bgcolor 255 255 255 -canvas 102%% 102%% center
But this code doesn`t work properly in ...
by anfvan6
Wed Mar 25, 2020 10:28 am
Forum: NConvert
Topic: Multiple bgcolor
Replies: 9
Views: 4251

Re: Multiple bgcolor

i need to make border (1 px black line + 7 px white line for each side) for resized image.
i try to use this code:

"C:\XnView\nconvert.exe" -quiet -out jpeg -ratio -rflag decr -resize longest 1328 -rtype lanczos -bgcolor 0 0 0 -canvas #2 #2 center -bgcolor 255 255 255 -canvas #14 #14 center ...
by anfvan6
Tue Mar 24, 2020 3:03 pm
Forum: NConvert
Topic: Multiple bgcolor
Replies: 9
Views: 4251

Re: Multiple bgcolor

Double canvas resize doesn`t work.
Does anyone know how to make border (with two colors) in the nconvert?