Cropping Images with JavaScript - Part 2

It's always nice to have someone simply show you what you need to know in order to solve a problem. There is, however, a problem with just being shown only what you need to know. You deprive yourself of the deeper level of retention that comes from self-discovery of the topic being explored.

So, consider this video a comprehensive introduction. One where I guide you through the process of learning the tools of JavaScript within FileMaker Pro. The advantage is the fact that you have your own FileMaker solution you're working on and this solution can inevitably benefit from using JavaScript implementations. The motivation should be there. You just need some of the know-how.

The result of watching this video is growing your skillset and branching out into other methods of solving problems in FileMaker.

AttachmentSize
CroppingImagesWithJavascript.zip2.99 MB

Comments

Hi
it would be nice to see how to copy a large amount of text ( > 30'000 chars) into a variable. When using JavaScript it will become more important... .

Would this work with the FileMaker.PerformScript JavaScript command? I've been playing around with it, replacing the fmp URL scheme call, but something's not going right with the image export.

Oooh, I think I got it to work! Nevermind, carry on.

Very nice technique. I have implemented it in a solution working on both mac and iPhone. Of course there is still the nagging issue of it not working on windows. Were you ever able to resolve that issue? Also found that it does not work when accessing via WebDirect. Any thoughts?
Other than that I'm still working on deconstructing so that I can change things such as the aspect ratio and other options. Hoping to figure out how to change the menu as well. I would love to have a menu like the one you presented in the 2016 technique. The current menu is too wide for iPhone and the result is a bit ugly.
Great stuff as always. Thanks

thats clever, is it possible to square images for websites, I mean I have a 200x500 image and I want to convert thousands of images to square in this case 500x500,

Thanks
Fernando