Menu

#11 Plugin: Image Manager from Wei Zhuo

open
nobody
None
5
2006-12-04
2005-06-05
Brent Kelly
No

Integration of Wei Zhuo's Image Manager plugin into FCK
Editor.

Gives the ability to select images base on
auto-generated thumbnails including setting common html
attributes, upload new images, create/delete folders,
delete images and edit images.

Editing images allows basic image manipulation
including cropping, resizing and compression of images
(server side). All image manipulation done through the
GD or Imagemagick libraries.

For installation instructions refer to README.txt in
the archive.

Discussion

1 2 > >> (Page 1 of 2)
  • Nobody/Anonymous

    Logged In: NO

    ...your archive is broken.

     
  • Brent Kelly

    Brent Kelly - 2005-06-06

    Logged In: YES
    user_id=1291381

    Argh - it seems sourceforge won't upload my archives
    properly - tried twice with a tar.gz & once with a zip
    too... corrupts the archives every time so i've given up
    with that for now & just put it up on our servers. It can be
    downloaded from:

    http://sources.zeald.com/ImageManager.tar.gz

    Brent :).

     
  • jan

    jan - 2005-06-06

    Logged In: YES
    user_id=1292116

    Hi Brent,

    I just wanna THANK YOU for the ImageManager integration.
    I've spent many many hours trying to do it and no luck, and
    then you came along. You're my hero for this week.

    Thank you!

     
  • Nobody/Anonymous

    Logged In: NO

    Hey I works very well thanks you....

    But the marker function seems to be broken....

     
  • Nobody/Anonymous

    Logged In: NO

    Hmm i have no idea what the 'marker function' is...

     
  • Nobody/Anonymous

    Logged In: NO

    Nice Work! U Rock!

     
  • Nobody/Anonymous

    Logged In: NO

    I CAN'T DOWNLOAD THEM

     
  • Brent Kelly

    Brent Kelly - 2005-06-15

    Logged In: YES
    user_id=1291381

    Did you read all the comments & notice the link down the bottom?

    http://sources.zeald.com/ImageManager.tar.gz

    Just checked it via proxify (proxify.com) & it seems to be
    working fine...

     
  • Brent Kelly

    Brent Kelly - 2005-06-15

    Logged In: YES
    user_id=1291381

    A couple of patches I have since made to the ImageManager
    with regard to uploading images:

    - the thumbnails weren't generating correctly when they were
    first uploaded (but fine if you refreshed). To fix this i
    made the following mod to Classes/ImageManager.php:

    at the top of the file:
    require_once('Thumbnail.php');

    at approx line 435 in the function _processFiles(..) after
    the line $result = Files::copyFile($file['tmp_name'], $path,
    $file['name']);

    add:

    // now create a thumbnail for it
    $thumb = new Thumbnail();
    $thumb->createThumbnail($path.$file['name']);

    This will create a thumbnail directly after uploading the
    file - seems to have fixed the problem for now.

    - if a user attempts to upload a corrupt image or incorrect
    file type, it currently fails silently which can be quite
    confusing for both users & developers alike. To remedy this
    make the following modification:

    in the same _processFiles(..) after approx line 425 which
    reads: Files::delFile($file['tmp_name']);

    add:

    echo '<script language="javascript">alert(\'Error: The image
    you are attempting to upload is corrupted.\');</script>';

    This seems to now give a nice alert error.

    I haven't tested these too much but they seem to be doing
    the job so figured might help someone else too.

    Brent.

     
  • Nobody/Anonymous

    Logged In: NO

    is there any else file from zip, i try many time your file
    doen't work
    please i need badly.

     
  • Chris

    Chris - 2005-06-19

    Logged In: YES
    user_id=1225835

    \hmm it says with me unkown toolbar item ImageManager also

     
  • Chris

    Chris - 2005-06-19

    Logged In: YES
    user_id=1225835

    Sorry i forgot a bit... it works now, only with large images
    it does not create thumbnails, also when i edit an image i
    cannot save it ?

     
  • Brent Kelly

    Brent Kelly - 2005-06-19

    Logged In: YES
    user_id=1291381

    If its not creating thumbnails then you haven't set up your
    plugins/ImageManager/config.inc.php correctly. I had noticed
    the save icon missing from the image editor & am planning to
    fix that soon so will post a patch.. either that or you
    could & post your patch... ;)

     
  • Brent Kelly

    Brent Kelly - 2005-06-19

    Logged In: YES
    user_id=1291381

    Just found a bug in my patch listed below on 2005-06-15
    18:15. To fix it replace the line:

    $thumb->createThumbnail($path.$file['name']);

    with

    global $IMConfig;
    $thumb->createThumbnail($path.$file['name'],$path.$IMConfig['thumbnail_dir'].'/'.$IMConfig['thumbnail_prefix'].$file['name']);

    --
    Brent.

     
  • Nobody/Anonymous

    Logged In: NO

    In addition to previous message. In Firefox JavaScript
    Console, when I trying to open the Image Editor, I see this
    message:

    Error: i18n has no properties
    Source File:
    http://sitesuite_fck/admin/utils/fckeditor/editor/plugins/ImageManager/assets/popup.js
    Line: 96

     
  • Nobody/Anonymous

    Logged In: NO

    Thanks, Brent. I was just about to do this myself.

     
  • michi

    michi - 2005-07-10

    Logged In: YES
    user_id=1310418

    When I insert image using Image Manager, then right-click it
    and click Image Properties, the path 'Image File' is wrong,
    always starts with '/http://my_address/image_filename', so I
    always need to remove the first part (/http://my_address).
    Is that a bug or do I have something wrong?

    __
    michi

     
  • javi-peleo

    javi-peleo - 2005-07-21

    Logged In: YES
    user_id=1316419

    After make changes to install de plugin, dont display the
    right-click in FCKeditor and make a javascript error.
    I cant find anyting abaut this error.
    Somebody knows what I can do to solve it?
    Sorry for my bad English!

     
  • Brent Kelly

    Brent Kelly - 2005-07-21

    Logged In: YES
    user_id=1291381

    hey guys - sorry but I don't really have time to support
    this patch - I suggest you create a forum thread about it &
    post any fixes you come across - perhaps post a link here also.

     
  • Frederik Frost Nielsen

    Logged In: YES
    user_id=915246

    Did anyone solve to make it work with v. 2.0`?

    It work but if I do these steps:

    edit editor/_source/internals/fckcontextmenu.js
    - search for 'FCKLang.ImageProperties'
    - replace the string in the parameter before the
    above mentioned one from 'Image' to 'ImageManager'.
    the line should now read:
    return new FCKContextMenuGroup( true,
    this, 'ImageManager', FCKLang.ImageProperties, true ) ;

    This updates the _source context menu to use the image
    manager. However to avoid having to recompile the whole
    thing, also need to update the compiled versions too so also
    repeat the above on the following files:

    - editor/js/fckeditorcode_gecko_2.js
    - editor/js/fckeditorcode_ie_2.js

    It will not work :S

     
  • Frederik Frost Nielsen

    Logged In: YES
    user_id=915246

    Okay solved seems like your not allowed to edit the files with
    notepad - it works after I did the changes with DreamWeaver

     
  • Nobody/Anonymous

    Logged In: NO

    I am also getting this JS error: any ideas?
    Line 97
    Char 5
    Error: 'undefined' is null or not an object
    Code 0
    URL:
    DIR:/editor/plugins/ImageManager/editor.php?img=%2Fpics%001.jpg

     
  • Nobody/Anonymous

    Logged In: NO

    Ive been able to successfully install and configure multiple
    ways this fine plugin Nice work Guys For tose of you who
    cant get it installed read this page again from BOTTOM to
    TOP not top to bottom....

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB