The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle Extras (http://forums.omnigroup.com/forumdisplay.php?f=7)
-   -   Crop Image script (http://forums.omnigroup.com/showthread.php?t=10240)

Bill Van Hecke 2008-10-16 11:04 AM

Crop Image script
 
2 Attachment(s)
Howdy,

Keith Lang of Plasq fame asked me today how to crop an image in OmniGraffle, and I felt like I should have a better answer than our usual several-step process. It's not [I]that[/I] hard, but I really felt like it should be a one-step thing.

So, until we can improve the experience in the app, Lizard and I started on a little AppleScript that works kind of like the Intersect command in the Shapes submenu. Create a rectangle on top of the image you want to crop, select both objects, and run this script. Note that this only works properly when your original image is at its full original size.

Of course, you can always use the image placement controls in the Image inspector, but this is a nice little shortcut.

akassover 2008-10-22 01:45 PM

This is great! (At least until a more robust solution is in place - the current cropping process doesn't make sense to me.)

For those of us that didn't know anything about scripting in OmniGraffle until this post, here's how you make it work:
[LIST=1][*]First, you need to activate the Script Menu first. Launch AppleScript Utility, located inside AppleScript folder. You'll find it in /Applications/AppleScript/AppleScript Utility.
[*]Then, put the downloaded script in ~/Library/Scripts/Applications/OmniGraffle Pro (drop the Pro if you're using the Standard edition), where ~ is your home folder.
[*]Finally, while OmniGraffle is open, just click the Scripts menu (it shows up as a scroll icon on the right side of the menu bar) and choose the 'crop image' script.[/LIST]

ChristianS 2009-01-18 08:24 AM

I can't download the attachments.
Best Regards

whpalmer4 2009-01-18 09:01 AM

[QUOTE=ChristianS;53894]I can't download the attachments.
Best Regards[/QUOTE]

What happens when you try? What are you doing to download them, and what browser are you using? I just successfully downloaded both by simply clicking on the links in Safari 3.2.1 running on 10.4.11...

fjordaan 2009-04-07 09:03 AM

Bill, thanks very much for this script, it will definitely save me some time. That said, a proper crop function is still as necessary as ever.

Two problems:

1. Cropping is not perfectly accurate. In my test, the cropped area is usually a little too low.

2. The resulting cropped image cannot be scaled without ruining the crop. This is part of OG's flawed image placement approach.

Anyway, I just thought I'd mention it. I understand there is work underway to improve cropping in OG.

josefnoll 2010-02-05 11:20 AM

[QUOTE=whpalmer4;53897]What happens when you try? What are you doing to download them, and what browser are you using? I just successfully downloaded both by simply clicking on the links in Safari 3.2.1 running on 10.4.11...[/QUOTE]

You need to register and login to download...

josefnoll 2010-02-05 11:30 AM

OBSOLETE in Omnigraffle 5
 
Script is obsolete for Omnigraffle 5

for [B]crop[/B]; in the image inspector, use ‘natural’ image display and the enhanced scale and shift sliders

hansdorsch 2010-08-17 01:02 AM

No, the Script is not obsolete. As a matter of fact, the way through the image inspector is extremely awkward and completely not 'natural'.

The script works fine in OG Pro 5.

ltf3 2012-01-03 03:40 PM

[QUOTE=Bill Van Hecke;48940]Howdy,

Keith Lang of Plasq fame asked me today how to crop an image in OmniGraffle, and I felt like I should have a better answer than our usual several-step process. It's not [I]that[/I] hard, but I really felt like it should be a one-step thing.

So, until we can improve the experience in the app,.....[/QUOTE]

As relative newbie I am *stunned* I can't alt/drag the boundaries of an image and crop it.

It's been over 3 years since the post above. Any progress?

Lee

Brian 2012-01-03 04:04 PM

We generally prioritize our work on the basis of the number of folks who are sending in the request, rather than absolute age.

This is one of the things that's under consideration for inclusion in a future version of the app, but there are a number of other outstanding requests with more customers attached. As well as a number of other requests that would be on that list if we hadn't already added them over the last three years. :-)

That said, I'll attach your post to the item on a Crop tool in our development database, so the rest of the team will know you'd like to see this added, too. Thanks!


All times are GMT -8. The time now is 04:45 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.