webscreenshot icon indicating copy to clipboard operation
webscreenshot copied to clipboard

custom filename with timestamp suffix

Open tommeagher opened this issue 5 years ago • 3 comments

Hi, this is a great tool. I'd really like to be able to change the output filename for each png saved. Ideally, there would be a command line parameter that would simply append a datestamp as a string to the existing filename, which is the url. Is this something that is possible through the command line, or would I have to fork the repo and adjust this line to add an option to append it? You mention there are some length constraints even below 255 for certain renderers. Are those constraints documented somewhere? What ballpark should be avoided?

tommeagher avatar Nov 10 '20 23:11 tommeagher

Hello @tommeagher,

  • I understand your need, I will reflect on this.
  • Yes this is the line to edit to implement it,
  • Unfortunately I haven't been able to find documentation for the 255 limitation, this was just found by testing

Cheers.

maaaaz avatar Nov 10 '20 23:11 maaaaz

Thanks for the quick response. Would you be open to a pull request if I were to try to add this option?

tommeagher avatar Nov 10 '20 23:11 tommeagher

Hello, is it possible to implement this function ? thanks

JPnux avatar Nov 16 '21 10:11 JPnux