Description Usage Arguments See Also Examples
Download iNaturalist images for a recod and format them with metadata
1 | format_image(imginfo, img_no = 1, size = "medium", img_format = NULL)
|
imginfo |
iNaturalist id of the record |
img_no |
image number for the image for the iNaturalist record |
size |
mage size. Values accepted are "small", "medium", "large", "original". Deafault(medium). |
img_format |
image formating parameters in the form of list. Each item of the list is a component to be added on the image. currently Border and Annotations are available. For Border the componants of the list are
For Annotations the componants of the list are
Text annotation componants available from the iNaturalist records are as follows
|
Other image functions:
downlaod_inat_images()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
font <- "Times"
fontsize <- 18
fontstyle <- NA
fontcolor <- "white"
myfmt <- NULL
myfmt[[1]] <- c("border","black","20x50")
myfmt[[2]] <- c("border","grey", "2x2")
myfmt[[3]] <- c("annotate",c('"\u00A9"', 'photoby','" "'),font,fontstyle,
fontcolor, fontsize,"southeast")
myfmt[[4]] <- c("annotate",c('" "','scname'),font,"italic",
fontcolor,fontsize,"northwest")
myfmt[[5]] <- c("annotate",c('"\\n "', 'cname'),font,fontstyle,
fontcolor, fontsize,"northwest")
myfmt[[6]] <- c("annotate",c('" "','place','"\\n "', 'photodate'),font,fontstyle,
fontcolor, fontsize,"southwest")
myfmt[[7]] <- c("annotate",c('"iNat Id \\n "','obs_id','" "'),font,fontstyle,
fontcolor, fontsize,"northeast")
format_image(imginfo,img_no,size="medium",img_format=myfmt)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.