It would be nice if there was a native script step to rotate an image in a container. Pass it a number and that would be the degrees of rotation - 0 to 360 degrees. The rotation should be permanent in the container.
How should this work? Crop after rotate? Resize? I would be happy with 90 deg increments.
Would be great if it was delivered with Square Camera Images FMGo
It could be as simple as rotate, but keep the same stretch setting that is applied in the inspector.
Resize would be nice too - resize based on a percentage.
Crop would require passing top left, bottom right, but based on the zoom, this could produce undesirable results.
So the script steps could be something like:
ImageRotate(MyTable::MyContainer; 90) // ie. 90 is the degrees
ImageResize(MyTable::MyContainer; 25) // ie. 25 is the percent of resize. 100 would be original size. Less than 100 would reduce, over 100 would enlarge.
at present you can rotate a container field like other layout objects by 90º increments, so perhaps we'd be better off with:
Object rotation - increments other than 90º
At least as a start.
Granted that images in a container may be a special case.
Edited: broken link is fixed - thanks beverly
Ben, can you fix the link in your post?
opps! thanks! fixed!
Rotating an object on the screen is not the same... I would also not want to rotate every image. I would just want to rotate the image that needs rotating. That is only for the screen the person is on. If that image is displayed on other screens, they would need to make adjustments as well. That is why my post is to physically rotate the image so anywhere it is displayed, it is rotated.
I don't want to have clunky logic to show different containers at different rotations based on a value in a field. Not looking for a lame work around.
I understand what you are saying there, however I feel like if there were a FileMaker function to rotate an image it should be dynamic, so that you can indeed specify rotation dynamically. If an image should always be shown with the same rotation whenever it is displayed then that is perhaps best achieved by rotating the image before importing it?
PS - you can do this in a web viewer (you can even have spinning images!)
We have folks taking photos in the field with the iPad. So in order for them to rotate them, they need to export them and alter them on the iPad, then re-import them. It would just be nice to have the functionality in FileMaker.
When you say we can do this in the WebViewer, isn't that just rotating the view of the image? That does not physically change the image rotation for all other views (like reports or other screens that show the same image) That is why we need to actually change the actual image, not just rotate it in the current view.
I come from a .Net world, which I know this is not... just wish it had more functionality found in many other languages. I weigh the pros with the cons using FileMaker. The Rapid Development along with being able to run on all the platforms is the only reason we are using FileMaker. Most of the cons have some type of work around.
The MonkeyBread GraphicsMagick plugin can do it...
Monkeybread Software - MBS FileMaker Plugin: Component: GraphicsMagick
jdressing - good points all. I do use the excellent MBS plugin myself, but understand that not everyone is happy to use a plug-in and would like to have this functionality built in to FileMaker. Your point about photos taken on an iPad is a good one.
Free demo file called FMJSImageRotate on Github
You can use ImageMagick and BaseElements plugin to do that server side and with a script trigger. Not difficult.
Yes agreed, but that still requires the BaseElements plugin. I know this is freebut my approach is plugin free so could be used in a local file in FileMaker Go
Retrieving data ...