mirror of https://git.sr.ht/~hrbrmstr/splashr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
648 B
27 lines
648 B
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/dsl.r
|
|
\name{splash_png}
|
|
\alias{splash_png}
|
|
\title{Return a screenshot of a current page in PNG format.}
|
|
\usage{
|
|
splash_png(splash_obj)
|
|
}
|
|
\arguments{
|
|
\item{splash_obj}{splashr object}
|
|
}
|
|
\value{
|
|
a \link{magick} image object
|
|
}
|
|
\description{
|
|
Similar to \link{render_png} but used in a script context. Should be the LAST element in
|
|
a DSL script chain as this will execute the script and return the PNG content
|
|
}
|
|
\examples{
|
|
\dontrun{
|
|
splash_local \%>\%
|
|
splash_user_agent(ua_macos_chrome) \%>\%
|
|
splash_go("https://rud.is/b") \%>\%
|
|
splash_wait(2) \%>\%
|
|
splash_png()
|
|
}
|
|
}
|
|
|