← Back to team overview

sikuli-driver team mailing list archive

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

 

** Summary changed:

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

** Changed in: sikuli
   Importance: High => Critical

** Description changed:

+ ------------------------- 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!

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1737507

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

Status in Sikuli:
  Fix Committed

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!

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1737507/+subscriptions


References