Menu

#1 Rotate does not work

v1.0_(example)
open
nobody
None
5
2002-10-22
2002-10-22
No

File: imgDisp.asp

The error is caused by line 378.
The line curently reads:
rotatePath = localPath & "\jpegtran.exe" & " -copy all -
rotate " & rotAng & " " & localPath & "\" & imgToDisp
& " " & localPath & "\" & imgRotPath

Needs to be changed to:
rotatePath = """" & localPath & "\jpegtran.exe""" & " -
copy all -rotate " & rotAng & " """ & localPath & "\" &
Replace(imgToDisp,"/","\") & """ """ & localPath & "\" &
Replace(imgRotPath,"/","\") & """"

There are two problems with the line.
1. imgToDisp and imgRotPath contains foward slashs
insead of back slashes.
2. If there are spaces in the path or filename, then the
parameters are not passed correctly.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB