Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quickly print all images #44

Closed
droglenc opened this issue Aug 23, 2020 · 1 comment
Closed

Quickly print all images #44

droglenc opened this issue Aug 23, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@droglenc
Copy link
Contributor

A user (Nathan Stewart) would like to create jpegs of all images on which he has digitized points. This can be accomplished with the following code (using a list of RDS files in a directory as an example).

setwd()
tmp <- listFiles(".rds")
for (i in tmp) {
  d <- showDigitizedImage(i)
  nm <- paste0(tools::file_path_sans_ext(i),"_graph.jpg")
  dev.copy(jpeg,nm,width=d$windowSize[1],height=d$windowSize[2],units="in",res=72)
  dev.off()
} 

This could be made into a function called printDigitizedImages().

@droglenc droglenc added the enhancement New feature or request label Aug 23, 2020
@droglenc droglenc self-assigned this Aug 23, 2020
@droglenc
Copy link
Contributor Author

See saveDigitizedImage() in v0.2.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant