
andreasjansson/jpg-glitch

JPEG corruption as a service
Public
119
runs
Run andreasjansson/jpg-glitch with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
image |
string
|
Input image to glitch
|
|
glitch_intensity |
number
|
0.3
Max: 1 |
Glitch intensity (0.0 to 1.0)
|
compression_quality |
integer
|
75
Min: 1 Max: 100 |
Initial JPEG compression quality
|
glitch_type |
None
|
datacorruption
|
Type of glitch effect
|
color_channel_shift |
boolean
|
True
|
Apply color channel shifting
|
seed |
integer
|
Random seed for consistent glitching (None for random)
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 5,
"nullable": true,
"description": "Random seed for consistent glitching (None for random)"
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Input image to glitch"
},
"glitch_type": {
"enum": [
"datacorruption",
"huffman",
"quantization",
"mixed"
],
"type": "string",
"title": "glitch_type",
"description": "Type of glitch effect",
"default": "datacorruption",
"x-order": 3
},
"glitch_intensity": {
"type": "number",
"title": "Glitch Intensity",
"default": 0.3,
"maximum": 1,
"minimum": 0,
"x-order": 1,
"description": "Glitch intensity (0.0 to 1.0)"
},
"color_channel_shift": {
"type": "boolean",
"title": "Color Channel Shift",
"default": true,
"x-order": 4,
"description": "Apply color channel shifting"
},
"compression_quality": {
"type": "integer",
"title": "Compression Quality",
"default": 75,
"maximum": 100,
"minimum": 1,
"x-order": 2,
"description": "Initial JPEG compression quality"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}
Example API response
View prediction
'https://replicate.delivery/xezq/c5KkwkiDvZJ6CVhW5XDYEAR8poqymRXx2rIGoxH1WE3TgkSF/glitched.jpg'