loading

Pixo Image Editor

Integrating Pixo Editor into WordPress front-end

We are happy to announce that a new version of the WordPress plugin is now available, which makes it possible to integrate Pixo into the front-end of any WordPress website! This is possible thanks to our new attachToFileInput API.

How it works

Version 2.0 of the WordPress plugin adds settings page to configure Pixo for the front-end. There is a checkbox which makes Pixo globally available and attached to any <input type="file" /> field.

There is also a textfield which allows the website owner to specify the CSS selector that matches specific file input field(s).

When Pixo is attached to a file input, it will open the moment the end user selects an image from the file input. The end user can then edit the image with Pixo, and save it. The save will update the file input, and then the edited version of the image can be submitted via HTML form or JavaScript. This makes it possible to observe any file input, generated on the front-end page by any WordPress plugin!

If the website owner wants to integrate Pixo to specific page or a post, then the global setting should be turned off. The new version of the WordPress plugin comes with a handy shortcode for this purpose:

  • To attach Pixo to a file input field in a post or a page, add the following shortcode:
    [pixoeditor]
  • By default, Pixo will attach to every file input (input[type=file]). To attach to a specific field, add the following shortcode:
    [pixoeditor fileinput="id-or-css-selector"]
  • By default, when the user saves the image, Pixo will update the file input. If you want your site visitors to be able also to download the edited image, add the following shortcode:
    [pixoeditor download="true"]
  • By default, Pixo will load it’s stock stickers collection. If you want to use your own stickers collections, create few, and add the following shortcode:
    [pixoeditor stickers="111,121,131"] where 111, 121 and 131 are the IDs of the collections

Custom Stickers collections

Speaking of stickers, the new WordPress plugin adds a custom post type for Stickers Collections. The WordPress site owner can create custom collections of stickers, which can be included to the front-end instances of Pixo Editor. Then the end users can add these stickers to their images.

Rich set of configuration options

The front-end integration settings page allows the website owner to configure Pixo, providing user interfaces for setting most of the Pixo configuration options:

  • select a Theme
  • choose which Pixo features to include
  • override colors & backgrounds
  • link to custom logo
  • language

More options to come soon!

New configuration options will be added soon, such as configuring custom crop sizes, frames, and any other configuration option that Pixo Editor provides. Stay tuned!

More translations and API updates

We are excited to reveal our new cool APIs to you!

More languages

Before that, we want to let you know that we added few new translations of Pixo Editor:

  • es-ES (Spanish, Spain)
  • ar-SA (Arabic, Saudi Arabia)
  • bg-BG (Bulgarian, Bulgaria)

To translate Pixo into one of these:

const pixo = new Pixo.Bridge({
   apikey   : 'apikey',
   language : 'bg-BG',
});

See all available languages.

We will be very thankful if you help us translate Pixo into more languages! Find out how.

API updates

Attaching to a <input type="file" /> element

One of the coolest new APIs is the ability to attach to a <input type="file" /> element and observe it. When the end user selects image from his file system, Pixo Editor opens. When the user saves the image, the file input gets updated with the edited image, and it can be submitted via standard HTML form or via JavaScript.

To attach to a file input:

<input type="file" name="image" />
<script src="https://pixoeditor.com/editor/scripts/bridge.m.js"></script>
<script>
   //create new Pixo instance
   const pixo = new Pixo.Bridge({
      apikey: 'abc123xyz000',
   });
   //the editor will observe the "onchange" event of the file input,
   //and on save will update it with the new image; then the new image
   //then the new file is ready to be uploaded - no more actions required!
   pixo.attachToFileInput(document.querySelector('input[type=file]'));
</script>

There is also a shortcut. You can pass a DOM reference (or a CSS Selector string) to Pixo constructor options:

<input type="file" name="image" />
<script src="https://pixoeditor.com/editor/scripts/bridge.m.js"></script>
<script>
   //create new Pixo instance
   const pixo = new Pixo.Bridge({
      apikey: 'abc123xyz000',
      fileinput: document.querySelector('input[type=file]'),
   });
</script>

Additional export image data types

We’ve added the following export options in the onSave callback:

new Pixo.Bridge({
   apikey: 'apikey',
   onSave: function (image) {
      image.toBase64();
      image.toJSON();
      image.download();
   },
});
  • toBase64 returns (String) base64 encoded string of the image data
  • toBase64s returns Array of base64 encoded strings of the images (applicable to batch and multiple editing)
  • toJSON returns the edited image in raw JSON data, suitable for editing back
  • toJSONs returns Array of raw JSON data of the images (applicable to batch and multiple editing)
  • download downloads the image(s) as file(s) (one by one) to user’s file system
  • downloadAll downloads image(s) as a ZIP archive to user’s file system

Templates

The toJSON export option gave us the ability to implement templating within Pixo Editor. Now Pixo can apply pre-defined templates to your end-users’ images. This includes anything that can be done with Pixo: text, filters, shape, frame, drawings, stickers… everything! When the end-user opens his image in Pixo, template is applied to it and every object (text, sticker, etc.) is editable.

Creating a template

To create a template, create a new Pixo Editor instance with onSave callback exporting the edited image as JSON:

const pixo = new Pixo.Bridge({
   apikey   : 'apikey',
   onSave   : function ( image ) {
      const template = image.toJSON();
      // save the template to your database so you can reuse later...
   },
});
pixo.edit('any/image');

image.toJSON() returns you a raw JSON data of the image, which you can store in your database as a template and reuse later.

Applying a template to end-users’ images

Then, on your production, for your end users, you can instantiate Pixo like this:

const pixo = new Pixo.Bridge({
   apikey   : 'apikey',
});
pixo.edit({
   src: 'uploaded-user-image-base64-or-url',
   template: template, // this is the template exported in the above example
});

This will apply all the changes from the template (text, stickers, frame, shape, color corrections, filters, etc.) to the users’ images.

Happy coding! Stay safe!

Blur brush in Free Drawing

Many of you’ve been asking us for this feature for so long, and we finally did it. Our Free Drawing tool now has a Blur brush, allowing end users to blur regions on their photos, such as faces and car plates. Check it in action:

The new feature is now available to all users.

Custom pre-defined crop sizes

You asked for it and we did it! We just released a new API that allows you to extend the default pre-defined crop sizes, or to completely replace them.

You can do that by passing a constructor callback option called filterCropSizes. This function accepts default crop sizes as array and must return the updated array or new array. Each item in the array must be an object with the following properties:

  • caption (String) Caption that will be displayed below the crop size
  • value (Number) Crop aspect ratio
<script>
var my_crop_sizes = [
  {
     // Crop size caption that will be printed in the property panel below the preview.
     // Required.
     caption: '3:2',

     // Crop aspect ratio.
     // Required.
     value: 3 / 2,
  },
  {
     caption: '5:3',
     value: 5 / 3,
  },
];

var pixo_instance = new Pixo.Bridge({
  apikey: 'abc123xyz000',
  filterCropSizes: function(default_crop_sizes){
     // replace default crop sizes with your own
     return my_crop_sizes;
     // or, merge them and place yours at the top
     return my_crop_sizes.concat(default_crop_sizes);
     // or, merge them and place your at the bottom
     return default_crop_sizes.concat(my_crop_sizes);
     // or, mix them randomly
     return default_crop_sizes.concat(my_crop_sizes).sort(function(){
        return Math.random() - 0.5;
     });
  },
});
</script>

You can later filter crop sizes by calling the appropriate instance method, like this:

pixo_instance.filterCropSizes(function(default_crop_sizes){
   // ...
   return my_crop_sizes;
});

Happy coding!

Christmas: 50% off on all subscriptions

It’s that fantastic time of the year! Therefore:

  1. we deployed a thematic stickers pack
  2. we give you a special -50% discount on all packages!

Stickers

They are available in all plans, so enjoy!

If you do not want them, you may consider filtering them by using our filterStickers API.

Christmas –50% OFF

When purchasing new plan you will get –50% discount on all packages*. Hurry up and get a subscription before Saturday, Jan 9 2021!

Merry Christmas, and a happy New year! Stay safe!

* Discount is applied only on the first subscription payment. Discount is not applied on recurring payments (subscription renewals).

2020’s updates to Pixo Image Editor

This year went crazy due to COVID-19 disease. Just like many other companies, we experienced and continue to experience hard times too. Still, we did not stop to deliver small but handy updates to the Image Editor, although we did not announce them here. But we will fix that – below you will find a digest of most important improvements we’ve released so far after Session Restore feature.

Crop improvement

Toggle crop lock ratio now affects crop rectangle controls:

Released: Nov 7

Improved Sticker’s organizing & filtering

The UI component for filtering stickers is now an autocomplete dropdown. If you are using our default stickers library this change won’t affect the user experience. But if you use your own collection, sticker keywords will appear as options in the dropdown menu, and will be filtered while the user is typing:

Released: Sep 26

Pick color from image

Users now can use the color picker pipette to pick a color anywhere from the image:

Released: Aug 17

More translations

Pixo is now available in Russian and Arabic. Just add language: "ar-SA" for Arabic or language: "ru-RU" for Russian in Pixo.Bridge constructor options. More on languages.

Released: Sep 29

Rotation points on all sides of selected object

This is useful when objects (stickers, text blocks, etc.) are larger than the image itself and the user wants to rotate them:

Released: Sep 28

Captions in custom frames

You can now add captions to your custom frames in the filterFrames callback.

Released: Sep 17

Free drawing: Insert shapes

Free drawing tool now supports insertion of basic shapes with solid or semi-transparent color:

Released: Aug 22

Mobile improvements

  • Mobile Edit menu now does not show the “More” button if there are excluded features and all buttons fit on the viewport width
  • Re-organized properties in Mobile Property panels

Released: Aug 27

Text tool: background color

While the existing Highlight was adding background around the text only and not the whole block, the Background color option now does it:

Released: Aug 19

2 new filters: Redify & Extra Sharp

Original
Sharp
Extra Sharp

Original
Redify

Released: Jun 11

Doubled server resources

This month we started to experience peaks of performance degradation in Pixo’s usage several times. This resulted in huge latency, even outages:

  • Nov 04 2020 07:50 AM UTC – 08:05 AM UTC (15 min)
  • Nov 12 2020 01:26 AM UTC – 02:21 AM UTC (55 min)
  • Nov 18 2020 02:49 AM UTC – 03:36 AM UTC (47 min)

This required us to act very fast. So we did. On Nov 19 2020 06:39 AM UTC our devops started the upgrade procedure. Server resources are now doubled. This, however, resulted in additional 25 minutes of downtime.

So far we observe no issues. Our devops continue to monitor all systems 24/7.

We apologize for the outages.

Black Friday: 50% off on all subscriptions

There are two weeks till Black Friday and Thanksgiving. Therefore:

  1. we deployed a thematic stickers pack
  2. we give you a special -50% discount on all packages!

Stickers

They are available in all plans, so enjoy!

If you do not want them, you may consider filtering them by using our filterStickers API.

Black Friday -50% OFF

When purchasing new plan you will get -50% discount on all packages*. Hurry up and get a subscription before Friday, November 27!

Happy Thanksgiving! Be good! Stay safe!

* Discount is applied only on the first subscription payment. Discount is not applied on recurring payments (subscription renewals).

Pixo & Modula – The Perfect Combo for Photographers

We’ve been on the WordPress market for quite some time, thanks to our plugin. Now every WordPress website or blog can use Pixo as default image editor in wp-admin. All Pixo features come pretty much in handy, especially batch & multiple editing. Thanks to this, you can retouch all your images pretty quickly, and prepare them for your portfolio. 

But how  to create an impressive portfolio to showcase your masterpieces? Well, we will tell you about WordPress’s best kept secret. We have heard that Modula is the most stunning portfolio builder that comes with a bunch of excellent features for photographers. The most important thing is that it is user-friendly and has an interface that’s easy for the eye. 

This gallery builder has two versions, Modula Lite, which is the free version, and Modula PRO, which has more features and a variety of options to choose from when it comes to pricing. Every pricing plan (Starter, Trio, Business, Agency) provides support and updates for one full year, unlimited images, and unlimited galleries.

But what makes Modula so cool? First of all, you can organize your galleries into Albums, mix pictures with videos, and even integrate GIFs in your portfolio. Modula comes with stunning hover effects where you can add a title, short description, and social icons. Do you know what goes hand in hand with an impressive portfolio? Custom grids that will allow you to arrange your images according to your style. Also, Modula comes with straightforward lightbox integration powered by Fancybox that magnifies the way your pictures will be shown.  

Moreover, Modula provides incredible image-entry animations to make your portfolio more dynamic and attractive to visitors. Want some filters for your images? Well, Modula offers extraordinary filters too. And to get rid of all those images thieves, you can protect your galleries by adding a watermark and a password. If you want to reach the mountain top, and be #1 on the Google ranking, you can take advantage of the SEO add-on that Modula offers. Wonderful! 

There’s more! It doesn’t require any coding skills, and it is mobile responsive. You can easily create your galleries with just a few clicks. And it’s super fast thanks to the Speed Up extension that helps you upload images at the speed of light.

Let us show you how easy it is to install the Modula Image Gallery and create a stunning portfolio.

Download and activate Modula

In the first place, go to the Plugins section in your WordPress dashboard, and press Add New. In the search bar in the right corner, you will have to look for Modula Image Gallery. Click on Install now and wait for a couple of seconds. It won’t take long, I promise! After loading, Activate the plugin.

Create your portfolio

In your WordPress dashboard, you will see the Modula plugin. Go to the item and click on the Add New button. Now you can start creating your first portfolio and upload your images. If you still haven’t figured out how to arrange the photos, don’t worry! Everything here is customizable, and you can sort them according to your preferences.

Name your portfolio

We advise you to use a descriptive name for your portfolio. This will help you distinguish between your galleries and help visitors understand what everything’s about. 

Upload images to your portfolio

Once you have selected your images, you can upload them to your portfolio. Click on Add to gallery, and the pictures will appear in the gallery edit section as seen below:

Next, you can easily drag and drop your photos and organize them in such a way to have the most stunning photography portfolio.

Publishing and inserting your portfolio

Now that you have some impressive images in your portfolio, don’t forget to press Save Gallery

The shortcode and the copy link will be generated in the gallery edit area. You only have to copy the shortcode and paste it wherever you want to publish your portfolio. Easy as that! You can post the shortcode on a page or in a post as well.

Customize your portfolio!

Everything here is customizable. Be sure to take advantage of every feature, and you will see results coming in no time. With the Modula Gallery Image plugin, you can create the most professional portfolios, photo galleries, video galleries and build a strong photography community. 

Pixo and Modula – The perfect combo for photographers: Summary

So, how about this? Glamorize your pictures with Pixo Image Editor and enhance your portfolios with Modula Image Gallery. Once you take this path, no one can stop you. Get crazy with these two tools and show people how your imagination reaches the highest peaks. 

Session restore

Did you ever close the Pixo Editor by accident, and all your edits gone away? Or did you ever quickly hit Save and few seconds later wanted to undo a change, but loading the exported image simply started a new session? Well, we are happy to tell you that this is now over!

Few days ago we released a great feature of the editor – Session Restore. Pixo now automatically restores the previous session of an image, allowing you to get back in history (Undo), change settings, update text, remove existing stickers, anything. Just as if you didn’t quit your previous session. This works for both saved and unsaved images.

The great thing about Session Restore is the fact that it is fully configurable. You can define which session types to be restored (e.g. only saved images, or only unsaved) or remove it completely. Here are few examples:

new Pixo.Bridge({
   // This disables the Session Restore feature
   sessionrestore: false,
   // This disables the Session Restore feature for saved images only
   sessionrestore: {
      saved: false,
   },
   // This disables the Session Restore feature for unsaved
   // (closed without save) images only
   sessionrestore: {
      unsaved: false,
   },
   // This disables the default prompt for Session Restore
   // and restores the session immediately
   sessionrestore: {
      saved: { prompt: false },
      unsaved: { prompt: false },
   },
});

By default Pixo restores sessions for both saved and unsaved images, and prompts the user for that.