At Optidash, we’re always on the lookout for innovative ways to streamline workflows and enhance efficiency for our users. Today, we’re thrilled to introduce a feature that has been highly anticipated by our community: Multiprocessing in Optidash API. This feature marks a significant leap forward in our image processing and optimization technology, and we’re incredibly excited to share it with you.
Why Multiprocessing Matters
Images play a crucial role in content delivery, affecting everything from user engagement to load times. However, managing and optimizing these images can be a time-consuming task, especially when dealing with multiple variations. Traditionally, users had to issue separate HTTP requests for each image variation, a process that was not only cumbersome but also inefficient.
That’s where Multiprocessing comes in. We’ve listened to your feedback and understood the need for a more streamlined approach. Our users have expressed a desire to optimize and process multiple image versions without the hassle of multiple HTTP requests. We’re pleased to say, we’ve answered the call.
New Capabilities in the Optidash API
With the new Multiprocessing feature, users can now send a single HTTP request to the Optidash API with up to 8 sets of processing parameters. This means you can perform up to 8 operations in parallel on a single image. Imagine the time saved and the efficiency gained when you can handle multiple image variations in one go!
But that’s not all. We’ve taken flexibility to the next level by allowing users to specify different external storage systems for each processed image within the Multiprocessing array. This level of customization ensures that your workflow is as efficient and tailored to your needs as possible.
When you issue a request to the Optidash API with your image and multiple sets of processing parameters, our system intelligently distributes these tasks across our processing infrastructure. This parallel processing capability ensures that all your image variations are processed simultaneously, drastically reducing wait times and improving productivity.
-
Efficiency
Reduce the time spent on image processing by handling multiple operations in parallel.
-
Simplicity
Eliminate the complexity of managing multiple HTTP requests for different image variations.
-
Customization
Enjoy the flexibility of specifying different storage options for each processed image.
-
Scalability
Leverage the power of Optidash’s dedicated infrastructure to scale your image processing needs effortlessly.
Multiprocessing - Quick Example
To enable multiprocessing, simply wrap several JSON parameters in an array of objects and assign this array to the multi
key:
{
"multi": [{
"resize": {
"width": 320,
"height": 240,
"mode": "fit"
},
"output": {
"format": "webp"
}
},
{
"resize": {
"width": 320,
"height": 240,
"mode": "auto"
},
"output": {
"format": "avif"
}
}]
}
Activating multiprocessing changes the format of the response body; the output
becomes an array of objects that reflect the order of objects in your original request:
{
"success": true,
"code": 200,
"id": "c66e040d-2cb4-4330-8b01-0a7ce88039ed",
"input": {
"name": "example.jpg",
"format": "jpeg",
"width": 1024,
"height": 768
...
},
"output": [
{
"url": "https://s3.optidash.ai/fddcff8b-02cf-491c-af39-664cdf15b788/example.webp",
"name": "01.webp",
"format": "webp",
"width": 320,
"height": 240
...
},
{
"url": "https://s3.optidash.ai/07b02c6d-a55f-4e56-9459-cb12fb41acae/example.avif",
"name": "01.avif",
"format": "heif",
"width": 320,
"height": 240
...
}
]
}
Within the multi
array, each object operates independently, much like in the conventional single-image processing method. This allows for the individual customization of each object using any of the extensive parameters offered by Optidash.
Head over to our documentation for a detailed guide and examples to get you started. Whether you’re a developer looking to streamline your app’s image processing or a content creator aiming for faster content delivery, Multiprocessing is here to revolutionize the way you work with images with the Optidash API.
Wrapping Up
As we continue to innovate and improve Optidash API, your feedback is invaluable. We encourage you to dive into Multiprocessing, explore its benefits, and share your experiences with us. Your insights and ideas for new features are what drive us forward, helping us create even more awesome tools for you. Together, let’s shape the future of image processing. Reach out with your thoughts, suggestions, or any feature requests — we’re all ears and eager to make Optidash even better for our community.