Search found 11 matches

by keljnr
2019-07-16T03:51:42-07:00
Forum: Users
Topic: Overwrite images with original extensions
Replies: 3
Views: 9367

Overwrite images with original extensions

Hi, I have the following script that applies a color profile to any type of image, and then resave's as a jpg using original file name (overwriting the file): convert *.* -profile c:\LUTS\sRGB-IEC61966-2.1.icc -set filename:base "%[basename]" "%[filename:base].jpg" Is there a way...
by keljnr
2019-07-05T06:14:24-07:00
Forum: Users
Topic: EXR to JPG with vertical background gradient
Replies: 2
Views: 4588

EXR to JPG with vertical background gradient

I have a script which adds a background gradient to exr then converts to a jpg (changing colorspace along the way). Only issues is that I'm wanting a vertical linear gradient. The following code gives me a diagonal gradient. How can I change this to show as a vertical gradient? cd %~dpnx1 for %%a in...
by keljnr
2019-07-01T06:20:35-07:00
Forum: Users
Topic: Combining JPGS in folders and subfolders into PDFs
Replies: 6
Views: 8450

Re: Combining JPGS in folders and subfolders into PDFs

Absolute Legend! Thanks for all you're help Snibgo. Thats perfect!
by keljnr
2019-07-01T05:28:56-07:00
Forum: Users
Topic: Combining JPGS in folders and subfolders into PDFs
Replies: 6
Views: 8450

Re: Combining JPGS in folders and subfolders into PDFs

Awesome, thanks snibgo... It loops through, and when I give the pdf a set name, works perfectly: magick "*.{png,jpg,tif}" "test.pdf") But still unable to get the pdf to rename to the folder name: cd %~dpnx1 FOR /R %%a in (.) DO ( PUSHD %%a set currentfolder=%%~na magick "*.{...
by keljnr
2019-07-01T02:05:05-07:00
Forum: Users
Topic: Combining JPGS in folders and subfolders into PDFs
Replies: 6
Views: 8450

Re: Combining JPGS in folders and subfolders into PDFs

Thanks snibgo, I have set the following but my logic must be incorrect: cd %~dpnx1 FOR /R %%a in (.) DO ( PUSHD set currentfolder=%%~na FOR /R %%a in (*.jpg) DO ( magick "%%a" "%currentfolder%.pdf" ) POPD ) It looks like its looping through the directories but is just overwriting...
by keljnr
2019-06-28T07:24:19-07:00
Forum: Users
Topic: Combining JPGS in folders and subfolders into PDFs
Replies: 6
Views: 8450

Combining JPGS in folders and subfolders into PDFs

I have a script that, when I right click on a folder, combines all jpgs inside the folder into a PDF and renames the PDF to the name of the folder it resides in. cd %~dpnx1 for %%a in (.) do set currentfolder=%%~na start cmd /k magick "*.{png,jpg,tif}" "%currentfolder%.pdf" Howev...
by keljnr
2019-03-27T08:42:17-07:00
Forum: Users
Topic: Adding background gradient to each image, then convert to pdf
Replies: 4
Views: 4134

Re: Adding background gradient to each image, then convert to pdf

No I hadn't, works perfectly. Great job snibgo!! :-)
by keljnr
2019-03-27T07:41:46-07:00
Forum: Users
Topic: Adding background gradient to each image, then convert to pdf
Replies: 4
Views: 4134

Re: Adding background gradient to each image, then convert to pdf

Many thanks for getting back to me. I'm actually using v7 of imagemagick.
Upon running the script, I get the following error:

Code: Select all

magick: invalid argument for option 'sparse-color': Color found, instead of X-co
ord @ error/operation.c/SparseColorOption/272.
by keljnr
2019-03-27T03:51:50-07:00
Forum: Users
Topic: Adding background gradient to each image, then convert to pdf
Replies: 4
Views: 4134

Adding background gradient to each image, then convert to pdf

I currently have a script that when you right click on a folder to execute a batch file, converts all the EXRs to PDF: cd %~dpnx1 for %%a in (.) do set currentfolder=%%~na start cmd /k convert *exr* -colorspace RGB -colorspace sRGB -background none -alpha remove "%currentfolder%.pdf" Howev...
by keljnr
2018-10-29T04:14:24-07:00
Forum: Users
Topic: Search images in subfolders and convert
Replies: 1
Views: 3343

Search images in subfolders and convert

I have put together a simple script, which when used on the direct parent folder of the files, works fine: cd %~dpnx1 for %%a in (.) do set currentfolder=%%~na magick "*jpg*" "*png*" "*tif*" "%currentfolder%.pdf" It searches for jpg, png and tifs in a folder a...
by keljnr
2018-10-16T03:41:51-07:00
Forum: Users
Topic: Rename image conversion to parent folder name
Replies: 1
Views: 2767

Rename image conversion to parent folder name

I have a simple script to convert all jpegs in a folder into one pdf: magick *jpg* myfile.pdf Is it possible to rename the myfile.pdf to the folder name it sits in? So if the jpgs are in a folder called 'myFolder', the pdf will be myFolder.pdf I have a lot of folders with images and don't want to ma...