December 14, 200916 yr Newbies I am trying to to create a simple rotate image script, so that after using my webcam to grab an image, I have the option to go vertical. What are the steps to create this script using the Rotate Image module? Thanks.
December 14, 200916 yr You will first need to register the function at some point (usually in a startup script) and then call the actual function in your rotation script. Basic instructions for how to register a function can be found in the 1-2-3 Go section on the home page of the scriptmaster.fp7 file. Once registered, the function is best called in a setVariable script step (for example: $rotate = Rotate Image(picturelocation; degrees; {background})), though it has the potential to be called anywhere you can enter a calculation in FileMaker, such as a set field script step or a Calculation field calculation.
December 14, 200916 yr Author Newbies Thanks for the reply, David. I had already registered the function and have already successfully been using the QuicktimeFrameCapture module (works great, BTW). I have made a simple script as: Set Variable[$rotate; Value:RotateImage( Asset Management::Picture ; 90 ; 0 )] but nothing happens. What am I missing? Thx. Also, assuming I want no background, is 0 the correct value?
December 15, 200916 yr The rotated image will be stored in the $rotate variable. If something goes wrong, the $rotate variable will contain the word "ERROR". You can use SMLastError for a detailed error description in this case. I'd recommend using a hex color (#336699) for the background color, or just leave it as empty quotes.
December 15, 200916 yr Author Newbies Still getting ERRORS Here is my script: Set Error Capture [On] Set Variable [$rotate; Value;RotateImage( AssetManagement::Picture ; 90 ; "" ] Set Field [Asset Management::Picture; $rotate] Error Details (From SMLastError) [color:red][color:red] java.net.MalformedURLException: no protocol: image.jpg Parameters: {}
December 15, 200916 yr What's your image field? There's not currently a good way to pass container fields into ScriptMaster, so you need to use a URL as the first parameter. This can be a file url or http url.
December 15, 200916 yr Author Newbies Being that the image is already in the container field, having been brought in with QuickTime Frame Capture, I am not sure. If I understand your last post, it sounds as though I cannot rotate the image once it is in the container field (in this case, Asset Management::Picture)?
December 29, 200916 yr You will need to export the image from the container and then reference that exported image as a "file:///" url to be rotated and inserted back in using scriptmaster. You cannot rotate an image directly from a container field. Take a look at the export field contents script step to export the container.
January 12, 201214 yr Please, CAn you explain me exactly the syntax to refer a file in "c:tempimage.jpg" ?? I try this Imagerotate ( "filewin:/c:/temp/image.jpg ; "" ; "" ) but it doesn't work it says ERROR.
January 12, 201214 yr You should use a file URI. On Windows this should be something like More information on file URI schemes can be found here. file:///c:/path/to/the%20file.txt
January 12, 201214 yr I've used this one: "file:///c:/temp/image.jpg" and it says this error: java.lang.outofmemoryerror: java.heap.space Any help please ???
January 12, 201214 yr Can you provide the image to me at [email protected]? Also, if you can send us a bug report as well?
January 24, 201213 yr I'm sorry..... Today I've done some tests, and it's ran correctly ... Maybe it was a bad image.... Another question: How can I reduce the size of the image I put in a container field Thanks a lot.
July 26, 201312 yr Newbies i was wondering which programming language do you want. vb.net or c#. i have some vb scripts on how to rotate images. it rotate images to any angles you desire.
Create an account or sign in to comment