External edit (Fotoflexer) for cpg1.5.x External edit (Fotoflexer) for cpg1.5.x
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

External edit (Fotoflexer) for cpg1.5.x

Started by Joachim Müller, June 17, 2009, 06:28:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joachim Müller

This plugin allows you to edit the images in your gallery using the Flash-driven external online image editor from Fotoflexer.com

After installing the plugin (using the plugin manager as suggested in the documentation that comes with coppermine), you will notice an extra button on the intermediate image display screen, right next to the buttons that enable you to crop & and rotate, edit file information and delete the file. The button is labelled "Edit file in Fotoflexer" and will show up for the admin and for the registered user if the user has got permissions to edit the file, i.e. if he's browsing an image that he/she uploaded. The button will only be displayed beneath files that the online image editor Fotoflexer is capable of editing.
After clicking on the button your image will be sent to the advanced web 2.0 image editor on the site of Fotoflexer.com, where you can perform all kinds of edits. When clicking the save-button there, the edited image will be sent back to your site, where some authentification checks are being performed and the file is being saved, overwriting the one on your server (without further prompts, so make sure you know what you're doing).
Right now, this plugin is experimental - there have been no tests performed how it performs and there are certainly bugs in it - use at your own risk.

Originally, I was trying to use the new API provided by http://aviary.com, but that turned out not to work yet, so I went for the API from fotoflexer.com. Please understand that I'm not affiliated with Fotoflexer and that I have no control over their services. Things may or may not work as expected. This plugin comes with absolutely no warranties.
Fotoflexer currently display a banner on the editor screen, so if that bothers you, you should not use the plugin. If you have privacy concerns, read the legal stuff on fotoflexer's home page (http://fotoflexer.com/).

There is still much room for improvements in this plugin, and I would love to hear your feedback, but please understand that there is no guarantee that I will be able to implement a particular feature. What I'm interessted in most is the security-related stuff (thhe token creation and token checking using a sort-of database driven session) - I'd love to hear feedback and code review from coders. Thanks in advance.

Download: http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/cpg1.5.x_plugin_external-edit_v2.5.zip/download

phill104

Fantastic idea. I will carry on using Photoshop at home but when away on my company laptop or for users that have no image editing software this could be really good. I'm going to give it a good go tonight.
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

#2
Phill, thanks for your readiness to review.
The version I had released initially (v2.2) contained a bug that sent improper data to fotoflexer, leading to an error message there. This bug is fixed in v2.3. I have updated the attachment in my initial posting.

Joachim Müller


Αndré

I fixed a little icon display bug in r6184.

autephex

This appears to be hardcoded to only work with a specific URL/image..

codebase.php has the following line in it:
urlencode('http://osterburken.net/galerie/albums/konzert/05/just_rock/gg02.jpg');

and this is the only image that displays when using the external editor.. any chance of getting this fixed? or any suggestions on what to change in the code?

Αndré

Autephex, please have a look at the code:
        //$data['menu'] .= '?ff_image_url=' . urlencode($CONFIG['site_url'].$CONFIG['fullpath'].$data['filepath'].$data['filename']);
        $data['menu'] .= '?ff_image_url=' . urlencode('http://osterburken.net/galerie/albums/konzert/05/just_rock/gg02.jpg'); // Comment out the line above and uncomment this line for testing purposes


Seems that somebody accidentally commented out the wrong line. Just replace those two lines with
        $data['menu'] .= '?ff_image_url=' . urlencode($CONFIG['site_url'].$CONFIG['fullpath'].$data['filepath'].$data['filename']);
        //$data['menu'] .= '?ff_image_url=' . urlencode('http://osterburken.net/galerie/albums/konzert/05/just_rock/gg02.jpg'); // Comment out the line above and uncomment this line for testing purposes

and everything should work fine.

Davide Renda

As said earlier one, absolutely necessary when not at my own home pc (often...)
Attached my italian translation, as usual unzip and copy in /LANG directory.
Thanks!

Joachim Müller

Thank you for your contribution. Both the fix for the issue with the hard-coded test string as well as your language file has gone into the subversion repository and into v2.5 of the plugin (download link in initial posting). Thanks to all.

François Keller

French translation (by FBleu) added in the v2.5 in the intitial post
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

ninoo

Hello
fantastic this implementation.
Just one question: I would like to expand the window that opens with "External edit"
with certain resolutions not all icons can be seen completely.

Can you help? thanks