ImageMasker can load images in different ways:
- Clicking a button and selecting a file
- Drag and drop anywhere in the screen
- Paste the image directly (CTRL+V): you can paste an image from your clipboard (like a screenshot) or a URL
Once the image is loaded, it will be displayed on a canvas. You can doodle on the canvas and add masks. Masks are slightly rotated and distorted to prevent other people from demasking them easily. There are a few default masks that you can choose, but you can also add your own masks and they will be saved in the browser. You can set the opacity of the mask and change its zoom. You can also change the color and size of the brush. If you want to change the image you don't need to reload, just paste a different image and it will replace the old image.
After you're done masking, everything's ready to upload the final image! Press "Upload to Imgur" and the image will be uploaded. The upload button will disappear and you will see these new options in the menu:
- Text input with the Imgur URL for the image
- "Copy" button that will copy the link to your clipboard.
- "Check RIS" button: It will open 4 new tabs to check reverse image search on Yandex, Tineye, Google and Bing. Make sure that your browser doesn't block the popups. If they were blocked you'll see an alert.
- "Round title" and "Round Answer" text inputs. These are optional, they will be used for the "Save round" and "Submit" features.
- "Submit to /r/PictureGame" button: This button will call the picturega.me API to get the round number and create a link with the round submission. A new tab will be opened, and if you're approved to post on /r/PictureGame you'll see that the URL for the image and the round title (if you set a title) will be already filled in, so all you need to do is submit the post!
- "Save Round" button: this button will save the image link, the title and the answer to the localstorage of your browser. Saved rounds will be available through the main screen of the site. Just press "saved rounds" and you will see your rounds ready to be submitted to /r/PictureGame.
- "Copy to clipboard": Copies the image currently displayed on the canvas to your clipboard. Sadly it doesn't work in Firefox yet.
- "Download": Downloads the image to your PC.
The site also has a dark/light theme switch on the top right, your choice will be saved in the localstorage of your browser.
- On displays that aren't 16:9 (like mobile devices or 4:3 monitors) there might be problems with the layout of the site (I tried to fix it but looks like each phone and browser might display it differently, so I'm not sure if there's a consistent solution).
These keyboard shortcuts are features that weren't important enough to get a UI element, but can still be useful for some people. I didn't want to clutter the site with more tools for stuff that most people won't use. These key listeners shouldn't slow down the site since the events are only triggered when the key is pressed.
- CTRL+Z: Undo (same as the button)
- SHIFT: Disable drawing mode so elements can be selected, resized and dragged. When SHIFT is pressed again drawing mode is turned back on.
- Up/down arrow keys: Change the opacity of the last element added to the canvas, or the element(s) you selected.
- Backslash: Clone selected object(s) (or last object added). This can be useful if you need to set a double mask (but it's better if you choose a different image).
- Left/right arrow keys: Rotate the mask. If you're viewing your saved rounds you can use left/right to browse them too.
- Insert: Edit default subreddit to which your image will be submitted (useful in case you want to save your rounds on a private subreddit).
- W/S: Increase/decrease brush size
If you want your uploads to have a higher quality and a higher size limit you can put an imgur token.
- go to https://api.imgur.com/oauth2/addclient
- create an application and copy the client id
- then go to https://api.imgur.com/oauth2/authorize?client_id=CLIENT_ID&response_type=token and put your client id in that url
- authorize your own app to upload images
- it will redirect you to a page with this url https://imgur.com/#access_token=tokenhere
- copy the token and put it in the masker