[olug] Image manipulation question

Rob Townley rob.townley at gmail.com
Fri Dec 30 16:29:08 UTC 2005


i feel your pain... you would think making collages would be much more common.

How well this works largely depends on the file format.  When using
TIFF file formats, it may convert to a multipage TIFF instead of a
collage.  On the other hand, it may appear to work, but delete
everything but the current page.

I eventually got it to work with JPEG files, but often with loss of
resolution.  Did the job though.

convert.exe "ToBeAppended*.JPEG.*"   +append   "Appended.JPEG"



On 12/30/05, Noel Leistad <noel at metc.net> wrote:
> Currently using Imagemagick tools....specifically convert for this first
> part,
>
> have image (620x620), cropped desired center portion (310x215+300+170!)
> discarding  rest, OK.
>
> NOW, would like to also keep the following --  500x15+60+0 , and stitch
> the 2 images together, then "-resize 620x430+0+0"
>
> I currently do the first crop and resize, but I'm stumped on the
> combining part.
>
> Anyone got any quick ideas???
>
> TIA
>
> --
> #######################################################
> #  Noel Leistad                                       #
> #  noel at metc.net                                      #
> #                                                     #
> #######################################################
>
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>
-------------- next part --------------
@echo off
set outFile=%~n1.JPEG
if NOT EXIST %~d1 (
	@echo must be run from a drive letter, not \\server\uncname\
	pause FAILURE: try again from the P: drive.
	GOTO END
)

if NOT EXIST "%outFile%" (
	@echo "%outfile%" will be created
	) ELSE (
	 @echo "%outFile%" already exists!!!
	 @echo Rename or delete "%outFile%" and try again.
	 @echo Doing Nothing
	 pause
	 GOTO END
        )
C:\"Program Files"\"ImageMagick-5.5.7-Q8"\convert.exe -font Arial -fill blue -draw " text 10,10 '%outFile%'" -compress JPEG %1 "%outFile%"
C:\"Program Files"\"ImageMagick-5.5.7-Q8"\convert.exe "%~n1.JPEG.*" +append "%~n1.JPEG"
REM for %%S in ( "%outFile%.*" ) do @echo "%%~xS"
REM for %%I in ( "%~n1.JPEG.*" ) do if NOT %%~xI==.JPEG @echo "%%I"
for %%I in ( "%~n1.JPEG.*" ) do if NOT %%~xI==.JPEG del "%%I"
dir "%~n1.JPEG"

pause
:END






More information about the OLUG mailing list