Skip to content

Instantly share code, notes, and snippets.

@blitline-dev
Created January 21, 2014 02:09
Show Gist options
  • Save blitline-dev/8533237 to your computer and use it in GitHub Desktop.
Save blitline-dev/8533237 to your computer and use it in GitHub Desktop.
Rasterize Vector to 72dpi
{
"application_id": "YOUR_APP_ID",
"pre_process": [
{
"job": {
"src": "http://reboots.g-cipher.net/time/nixie-hvps.pdf",
"src_data": {
"dpi": 231
},
"functions": [
{
"name": "no_op",
"save": {
"image_identifier": "my_image",
"extension" : "png",
"save_metadata": true
}
}
]
}
}
],
"src": "&my_image",
"v": "1.18",
"functions": [
{
"name": "resize",
"params": {
"scale_factor": 1.0
},
"functions": [
{
"name": "convert_to_dpi",
"params": {
"dpi": 72
},
"save": {
"image_identifier": "0",
"extension" : "png",
"save_metadata": true
}
}
]
},
{
"name": "resize",
"params": {
"scale_factor": 0.5
},
"functions": [
{
"name": "sharpen",
"functions": [
{
"name": "convert_to_dpi",
"params": {
"dpi": 72
},
"save": {
"image_identifier": "1",
"extension" : "png",
"save_metadata": true
}
}
]
}
]
},
{
"name": "resize",
"params": {
"scale_factor": 0.25
},
"functions": [
{
"name": "sharpen",
"functions": [
{
"name": "convert_to_dpi",
"params": {
"dpi": 72
},
"save": {
"image_identifier": "2",
"save_metadata": true,
"extension" : "png"
}
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment