Support » Plugins » Hacks » Predefined selection in image editor

  • Resolved screen77


    i’m trying to set a predefined image selection.
    I have included a checkbox into the WP image editor, which should set a predefined selection by clicking on it. My problem is, that the selection mode is deactivated as long as i don’t set a selection manually with my mouse.
    My idea is to have this checkbox and if it is active, there should be a predifned selection (like 554px * 195px).

    Could someone help me with this?

    The code is in: /wp-admin/includes/image-edit.php
    My Version is WP 3.1

Viewing 2 replies - 1 through 2 (of 2 total)
  • Okay, looks like nobody can help in here.
    But i solved the problem on my own 🙂

    If some one else got the same problem:
    Here is a solution placed in image-edit.php on Line 162. Just before the part with the selection:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    If someone has an idea how to solve this problem without ‘hacking’ the core. It would be nice to read it here!

    Here we go with the Code again:

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Predefined selection in image editor’ is closed to new replies.