Skip to content

Commit 30cbe6b

Browse files
jka236rlundeen2Copilot
authored
FEAT: Add ImageOverlayConverter for compositing images with overlays (#1764)
Co-authored-by: rlundeen2 <rlundeen2@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Richard Lundeen <137218279+rlundeen2@users.noreply.github.com>
1 parent d8b531d commit 30cbe6b

7 files changed

Lines changed: 677 additions & 82 deletions

File tree

doc/code/converters/0_converters.ipynb

Lines changed: 76 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,17 @@
4040
"name": "stdout",
4141
"output_type": "stream",
4242
"text": [
43-
"Found default environment files: ['./.pyrit/.env', './.pyrit/.env.local']\n",
43+
"Found default environment files: ['./.pyrit/.env']\n",
4444
"Loaded environment file: ./.pyrit/.env\n",
45-
"Loaded environment file: ./.pyrit/.env.local\n"
45+
"No new upgrade operations detected.\n"
4646
]
4747
},
4848
{
49-
"name": "stdout",
49+
"name": "stderr",
5050
"output_type": "stream",
5151
"text": [
52-
"No new upgrade operations detected.\n"
52+
"/opt/venv/lib/python3.11/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
53+
" from .autonotebook import tqdm as notebook_tqdm\n"
5354
]
5455
},
5556
{
@@ -64,76 +65,77 @@
6465
"4 audio_path audio_path AudioWhiteNoiseConverter\n",
6566
"5 audio_path text AzureSpeechAudioToTextConverter\n",
6667
"6 image_path image_path AddTextImageConverter\n",
67-
"7 image_path image_path TransparencyAttackConverter\n",
68-
"8 image_path video_path AddImageVideoConverter\n",
69-
"9 image_path, url image_path ImageColorSaturationConverter\n",
70-
"10 image_path, url image_path ImageCompressionConverter\n",
71-
"11 image_path, url image_path ImageResizingConverter\n",
72-
"12 image_path, url image_path ImageRotationConverter\n",
73-
"13 text audio_path AzureSpeechTextToAudioConverter\n",
74-
"14 text binary_path PDFConverter\n",
75-
"15 text binary_path WordDocConverter\n",
76-
"16 text image_path AddImageTextConverter\n",
77-
"17 text image_path QRCodeConverter\n",
78-
"18 text text AnsiAttackConverter\n",
79-
"19 text text AsciiArtConverter\n",
80-
"20 text text AsciiSmugglerConverter\n",
81-
"21 text text AskToDecodeConverter\n",
82-
"22 text text AtbashConverter\n",
83-
"23 text text Base2048Converter\n",
84-
"24 text text Base64Converter\n",
85-
"25 text text BinAsciiConverter\n",
86-
"26 text text BinaryConverter\n",
87-
"27 text text BrailleConverter\n",
88-
"28 text text CaesarConverter\n",
89-
"29 text text CharSwapConverter\n",
90-
"30 text text CharacterSpaceConverter\n",
91-
"31 text text CodeChameleonConverter\n",
92-
"32 text text ColloquialWordswapConverter\n",
93-
"33 text text DenylistConverter\n",
94-
"34 text text DiacriticConverter\n",
95-
"35 text text EcojiConverter\n",
96-
"36 text text EmojiConverter\n",
97-
"37 text text FirstLetterConverter\n",
98-
"38 text text FlipConverter\n",
99-
"39 text text ImagePromptStyleConverter\n",
100-
"40 text text InsertPunctuationConverter\n",
101-
"41 text text JsonStringConverter\n",
102-
"42 text text LLMGenericTextConverter\n",
103-
"43 text text LeetspeakConverter\n",
104-
"44 text text MaliciousQuestionGeneratorConverter\n",
105-
"45 text text MathObfuscationConverter\n",
106-
"46 text text MathPromptConverter\n",
107-
"47 text text MorseConverter\n",
108-
"48 text text NatoConverter\n",
109-
"49 text text NegationTrapConverter\n",
110-
"50 text text NoiseConverter\n",
111-
"51 text text PersuasionConverter\n",
112-
"52 text text ROT13Converter\n",
113-
"53 text text RandomCapitalLettersConverter\n",
114-
"54 text text RandomTranslationConverter\n",
115-
"55 text text RepeatTokenConverter\n",
116-
"56 text text ScientificTranslationConverter\n",
117-
"57 text text SearchReplaceConverter\n",
118-
"58 text text SelectiveTextConverter\n",
119-
"59 text text SneakyBitsSmugglerConverter\n",
120-
"60 text text StringJoinConverter\n",
121-
"61 text text SuffixAppendConverter\n",
122-
"62 text text SuperscriptConverter\n",
123-
"63 text text TemplateSegmentConverter\n",
124-
"64 text text TenseConverter\n",
125-
"65 text text TextJailbreakConverter\n",
126-
"66 text text ToneConverter\n",
127-
"67 text text ToxicSentenceGeneratorConverter\n",
128-
"68 text text TranslationConverter\n",
129-
"69 text text UnicodeConfusableConverter\n",
130-
"70 text text UnicodeReplacementConverter\n",
131-
"71 text text UnicodeSubstitutionConverter\n",
132-
"72 text text UrlConverter\n",
133-
"73 text text VariationConverter\n",
134-
"74 text text VariationSelectorSmugglerConverter\n",
135-
"75 text text ZalgoConverter\n",
136-
"76 text text ZeroWidthConverter\n"
68+
"7 image_path image_path ImageOverlayConverter\n",
69+
"8 image_path image_path TransparencyAttackConverter\n",
70+
"9 image_path video_path AddImageVideoConverter\n",
71+
"10 image_path, url image_path ImageColorSaturationConverter\n",
72+
"11 image_path, url image_path ImageCompressionConverter\n",
73+
"12 image_path, url image_path ImageResizingConverter\n",
74+
"13 image_path, url image_path ImageRotationConverter\n",
75+
"14 text audio_path AzureSpeechTextToAudioConverter\n",
76+
"15 text binary_path PDFConverter\n",
77+
"16 text binary_path WordDocConverter\n",
78+
"17 text image_path AddImageTextConverter\n",
79+
"18 text image_path QRCodeConverter\n",
80+
"19 text text AnsiAttackConverter\n",
81+
"20 text text AsciiArtConverter\n",
82+
"21 text text AsciiSmugglerConverter\n",
83+
"22 text text AskToDecodeConverter\n",
84+
"23 text text AtbashConverter\n",
85+
"24 text text Base2048Converter\n",
86+
"25 text text Base64Converter\n",
87+
"26 text text BinAsciiConverter\n",
88+
"27 text text BinaryConverter\n",
89+
"28 text text BrailleConverter\n",
90+
"29 text text CaesarConverter\n",
91+
"30 text text CharSwapConverter\n",
92+
"31 text text CharacterSpaceConverter\n",
93+
"32 text text CodeChameleonConverter\n",
94+
"33 text text ColloquialWordswapConverter\n",
95+
"34 text text DenylistConverter\n",
96+
"35 text text DiacriticConverter\n",
97+
"36 text text EcojiConverter\n",
98+
"37 text text EmojiConverter\n",
99+
"38 text text FirstLetterConverter\n",
100+
"39 text text FlipConverter\n",
101+
"40 text text ImagePromptStyleConverter\n",
102+
"41 text text InsertPunctuationConverter\n",
103+
"42 text text JsonStringConverter\n",
104+
"43 text text LLMGenericTextConverter\n",
105+
"44 text text LeetspeakConverter\n",
106+
"45 text text MaliciousQuestionGeneratorConverter\n",
107+
"46 text text MathObfuscationConverter\n",
108+
"47 text text MathPromptConverter\n",
109+
"48 text text MorseConverter\n",
110+
"49 text text NatoConverter\n",
111+
"50 text text NegationTrapConverter\n",
112+
"51 text text NoiseConverter\n",
113+
"52 text text PersuasionConverter\n",
114+
"53 text text ROT13Converter\n",
115+
"54 text text RandomCapitalLettersConverter\n",
116+
"55 text text RandomTranslationConverter\n",
117+
"56 text text RepeatTokenConverter\n",
118+
"57 text text ScientificTranslationConverter\n",
119+
"58 text text SearchReplaceConverter\n",
120+
"59 text text SelectiveTextConverter\n",
121+
"60 text text SneakyBitsSmugglerConverter\n",
122+
"61 text text StringJoinConverter\n",
123+
"62 text text SuffixAppendConverter\n",
124+
"63 text text SuperscriptConverter\n",
125+
"64 text text TemplateSegmentConverter\n",
126+
"65 text text TenseConverter\n",
127+
"66 text text TextJailbreakConverter\n",
128+
"67 text text ToneConverter\n",
129+
"68 text text ToxicSentenceGeneratorConverter\n",
130+
"69 text text TranslationConverter\n",
131+
"70 text text UnicodeConfusableConverter\n",
132+
"71 text text UnicodeReplacementConverter\n",
133+
"72 text text UnicodeSubstitutionConverter\n",
134+
"73 text text UrlConverter\n",
135+
"74 text text VariationConverter\n",
136+
"75 text text VariationSelectorSmugglerConverter\n",
137+
"76 text text ZalgoConverter\n",
138+
"77 text text ZeroWidthConverter\n"
137139
]
138140
}
139141
],

doc/code/converters/226md.png

9.23 KB
Loading

0 commit comments

Comments
 (0)