diff --git a/code/game/machinery/computer/security.dm b/code/game/machinery/computer/security.dm
index 374bfd0e4e6..f54365c2c05 100644
--- a/code/game/machinery/computer/security.dm
+++ b/code/game/machinery/computer/security.dm
@@ -169,17 +169,23 @@
var/icon/side = new(active1.fields["photo"], dir = WEST)
user << browse_rsc(front, "front.png")
user << browse_rsc(side, "side.png")
- dat += text("
")
+ dat += {"
+ "}
else
dat += "General Record Lost!
"
if ((istype(active2, /datum/data/record) && data_core.security.Find(active2)))
@@ -334,6 +340,15 @@ What a mess.*/
P.info += ""
P.name = "paper - 'Security Record'"
printing = null
+
+ if ("Print Photo")
+ if(!printing)
+ printing = 1
+ sleep(50)
+ if(istype(active1, /datum/data/record) && data_core.general.Find(active1))
+ create_record_photo(active1)
+ printing = null
+
//RECORD DELETE
if ("Delete All Records")
temp = ""
@@ -546,6 +561,43 @@ What a mess.*/
updateUsrDialog()
return
+/obj/machinery/computer/secure_data/proc/create_record_photo(datum/data/record/R)
+ // basically copy-pasted from the camera code but different enough that it has to be redone
+ var/icon/photoimage = get_record_photo(R)
+ var/icon/small_img = icon(photoimage)
+ var/icon/tiny_img = icon(photoimage)
+ var/icon/ic = icon('icons/obj/items.dmi',"photo")
+ var/icon/pc = icon('icons/obj/bureaucracy.dmi', "photo")
+ small_img.Scale(8, 8)
+ tiny_img.Scale(4, 4)
+ ic.Blend(small_img,ICON_OVERLAY, 10, 13)
+ pc.Blend(tiny_img,ICON_OVERLAY, 12, 19)
+
+ var/datum/picture/P = new()
+ P.fields["name"] = "File Photo - [R.fields["name"]]"
+ P.fields["author"] = "Central Command"
+ P.fields["icon"] = ic
+ P.fields["tiny"] = pc
+ P.fields["img"] = photoimage
+ P.fields["desc"] = "You can see [R.fields["name"]] on the photo."
+ P.fields["pixel_x"] = rand(-10, 10)
+ P.fields["pixel_y"] = rand(-10, 10)
+ P.fields["size"] = 2
+
+ var/obj/item/weapon/photo/Photo = new/obj/item/weapon/photo(loc)
+ Photo.construct(P)
+
+/obj/machinery/computer/secure_data/proc/get_record_photo(datum/data/record/R)
+ // similar to the code to make a photo, but of course the actual rendering is completely different
+ var/icon/res = icon('icons/effects/96x96.dmi', "")
+ // will be 2x2 to fit the 2 directions
+ res.Scale(2 * 32, 2 * 32)
+ // transparent background (it's a plastic transparency, you see) with the front and side icons
+ res.Blend(icon(R.fields["photo"], dir = SOUTH), ICON_OVERLAY, 1, 17)
+ res.Blend(icon(R.fields["photo"], dir = WEST), ICON_OVERLAY, 33, 17)
+
+ return res
+
/obj/machinery/computer/secure_data/emp_act(severity)
if(stat & (BROKEN|NOPOWER))
..(severity)
diff --git a/html/changelogs/Tastyfish-wanted-photo.yml b/html/changelogs/Tastyfish-wanted-photo.yml
new file mode 100644
index 00000000000..1101b82aae6
--- /dev/null
+++ b/html/changelogs/Tastyfish-wanted-photo.yml
@@ -0,0 +1,35 @@
+################################
+# Example Changelog File
+#
+# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
+#
+# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
+# When it is, any changes listed below will disappear.
+#
+# Valid Prefixes:
+# bugfix
+# wip (For works in progress)
+# tweak
+# soundadd
+# sounddel
+# rscadd (general adding of nice things)
+# rscdel (general deleting of nice things)
+# imageadd
+# imagedel
+# spellcheck (typo fixes)
+# experiment
+#################################
+
+# Your name. Remove the quotation mark and put in your name when copy+pasting the example changelog.
+author: Tastyfish
+
+# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
+delete-after: True
+
+# Any changes you've made. See valid prefix list above.
+# INDENT WITH TWO SPACES. NOT TABS. SPACES.
+# SCREW THIS UP AND IT WON'T WORK.
+# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit.
+# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog.
+changes:
+ - rscadd: "Added the ability to print the records photo of a crew member from a security records console. Useful for Wanted notices!"
\ No newline at end of file