1
0
forked from HPR/hpr-tools

The show processing needs to be refactored #5

This commit is contained in:
Ken Fallon 2025-01-16 22:05:35 +01:00
parent 5cfdd42b11
commit 7fe9f60205

12
workflow/remove-image.pl Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env perl
use strict;
while (<>) {
s/(<img.*src.*data:image\/[^;]*;base64,[a-zA-Z0-9+\/=]*)/<img src="LOCAL_IMAGE_REMOVED/g;
s/(<img.*src.*http.*>)/<img src="REMOTE_IMAGE_REMOVED" \/>/g;
print;
}
exit
# <img src="data:image/jpeg;base64,/9j/4QnuRXhpZgAATU