[request] capture and store image should be possible with one compound command --- fixed 1.1.2 2017-12-12

Bug #1737507 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

------------------------- implemented solution
http://sikulix-2014.readthedocs.io/en/latest/screen.html#capturing

preliminary description:
storedAt = capture(Region or Text, [path,] name)
If Text is given, the interactive capture is processed, otherwise the given Region is captured.
If path is omitted, the image is stored in current bundle path as _name.png (_ to block its deletion on script save).
Otherwise image is stored at path/name.png.
In all cases returns the absolute filename or None if not successful.

-----------------------------------------------------

Hi Everyone,

When using the capture(Region=(x,y,w,h)) command, the saved image is going to the temp folder of the OS instead of the .sikuli folder of the project.

I assume this is a bug as I've read that it should go to the .sikuli folder, which is what I want. I'm on the 1.1.1 release version.

**BTW, it would be amazing if we could name and choose path for these captures**
Something like capture(region, path, filename) would be awesome!

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.2
RaiMan (raimund-hocke)
summary: [request] capture and store image should be possible with one compound
- command
+ command --- fixed 1.1.2 2017-12-12
Changed in sikuli:
importance: High → Critical
RaiMan (raimund-hocke)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.