Croppie: How to Flip Croppie image Horizontal Mirror | Reverse Horizontal

Created on 7 Nov 2017  路  3Comments  路  Source: Foliotek/Croppie

Hello, first I want to thank you for an awesome plugin for cropping image,
I'm new here in github and i created this account just to post this issue that I don't know to solve.
I'm fairly new to jquery/javascript so I still don't quite understand how your plugin works. I'm sorry :[

I want to have a button that flips the image vertically and horizontally and reverse horizontal before uploading it to my server.

And I'm having problem flipping the croppie in reverse horizontal not just rotating it.
In your demo I saw how you rotate image by degrees and only flip horizontal works for me.

So I want to know how to achieve flip croppie Horizontal Mirror | Reverse Horizontal on button click.

This is the original orientation.
download

Flip it Horizontal Mirror | Reverse Horizontal on button click
download-convertimage

I don't know if I'm clear enough but you'll get the idea.
Any help will be appreciate :) Thanks

Most helpful comment

Something like this ?
https://jsfiddle.net/afb76b7f/54/

All 3 comments

Something like this ?
https://jsfiddle.net/afb76b7f/54/

Yes! that's it! Thank you so much and after i've seen your fiddle with the ternary operator, I finally understand how the orientation works! :+1:
Additional: The only reason I've ask this because I don't know if the orientation is still changeable after i set it.

You're welcome.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nueverest picture nueverest  路  8Comments

powerbuoy picture powerbuoy  路  5Comments

carloscba picture carloscba  路  3Comments

TheAustinG picture TheAustinG  路  4Comments

mustkem picture mustkem  路  7Comments