Need on Comment Image plugin? Here’s the right place:leave a comment describing your problem (and check other comments to see if there is already an answer for you).

Be sure to have read the Comment Image page, there are a number of tips letting you to understand better how it works and it’s limitations.

My excuses for my bad english but it's the only way I have to communicate with you. Would you suggest a correction? Leave a comment, thank you!
Categories: WordPress


safas · August 14, 2013 at 1:50 pm


Ferry · January 21, 2013 at 10:38 pm

Why not a gif file animeted?

Ferry · January 21, 2013 at 10:28 pm

Why not *.gif files animeted?

    Stefano · January 22, 2013 at 12:05 am

    I think the resize function of PHP does not create resized version of animated gif, but the original image should be animated.

Алекс · November 29, 2012 at 7:19 am


luis · November 7, 2012 at 1:31 pm

my question is esasy to make but i am stuck on it for a couple days.
The plug upload the image perfectly but now i am trying to see the uploaded image whe i edti the comment in the admin area (where you can see listed all comments of the site). So when i click to edit a comment in the list, i received only the text (with anotrhe metaboxes)so is there any form to add o view the image of the comment? thanks in advanced

    Stefano · November 8, 2012 at 11:22 pm

    Hi I’m aware of this problem. with latest WordPress version the method I used to inject the images even on comment list does not work anymore.

    I need to dig into that…

aa · August 9, 2012 at 3:19 am

Is it still working

mike · July 17, 2012 at 9:02 pm

Hi, Thanks for such a great plugin, it’s working on wp 3.4.1 version.
I just have a quick question, i want to change the “choose file” button and “no file chosen” label to a different language, but i have searched anywhere with no luck, would you please kindly tell me where i can change it, i am using chrome. on IE, it shows “browse” button instead of “choose file” button. thanks!

Alex · July 14, 2012 at 2:38 pm


Thanks for the plug-in!

But how do i add it manually? Adding the code just gets me an blank field with no button.

thanks in advance

David · July 3, 2012 at 7:40 pm

We have been using this plugin for a while and it has been great! However, recently, some of the images uploaded previously have been showing up in new comments…So for example, say I used a screenshot to upload back in December of 2011, that screenshot has been mysteriously showing up in new comments. This only happens from time to time. It seems very random. Any ideas as to why this may be happening? Thank You!

Yan · June 26, 2012 at 3:02 pm

Hi Stefano,

I found the plugin working/displaying properly. But my readers can upload images but the images are not displayed. Only images uploaded by myself are displayed. Do you have anything idea of why?

The folder’s permission is 777 and readers’ images are in that folder (only not displayed on website)

Please see here:

passcode: 123

Thanks much for the great plugin!

    Stefano · June 28, 2012 at 11:23 pm

    I see images under other users comment, I’m wrong?

    Stefano · July 14, 2012 at 8:34 am

    It seems there are images associated to no more existing comments (and never deleted) and “resused” with new comment using old IDs. Have you migrated the database?

      David · July 14, 2012 at 5:00 pm

      I have migrated the site at one point, yes, after a re-design. Can you suggest how to fix the problem? I don’t really get it.

Alex · June 18, 2012 at 2:05 pm


Thanks for the plug-in!

But how do i add it manually? Adding the code just gets me an blank field with no button.

thanks in advance

gabi · February 21, 2012 at 6:04 pm

Plugin still not working.

I just uploaded a picture. It does not display in the comment. And on the server in wp-content the comment-image folder remains empty.

Thanks – again, here is the site:

Андрей Сорвин · February 2, 2012 at 6:42 pm

Пожалуйста, добавьте строку rel=”thumbnail” в ссылку картинки, чтобы в итоге получился следующий код:

… . commentimage_find_original($id, $i) . ‘” rel=”thumbnail”><img src="' . …

I don't speak English, sorry.

Maria · June 4, 2011 at 11:38 pm

Hello, everybody! I have a problem! I had this plugin for sometime, everything was perfect. Suddenly plugin stopped working. I download an image. But there is no image in comments. I would be thankful if you can help me.

Giraffe · May 28, 2011 at 9:52 pm

Hi Stefano

Thanks for great plugin would you tell me how to change size of thumbnails to 580px? Configuring it through wordpress doesn’t work for me i dont know why… here is my blog:

Dave · February 21, 2011 at 6:04 am

Hi Stefano

Would comment image take a lot of modification to use with the new BBPress plugin?


Jake · January 26, 2011 at 8:14 pm

Hi Stefano,

I was wondering if there is any way to show the image in the media library folder?

This way the admin would be able to view all uploaded images in one spot.

Great plug-in.


Knu-o2 · November 8, 2010 at 1:58 pm

Hi Stefano. Thanks very much for a great plugin!

I have recently upgraded to WP3 and set up for multisites. I have experienced the same problem as Ian and Patung: The comments gets “screwed up” between sites. Do you have any plans to look further at this issue?

Giorgio · September 21, 2010 at 3:27 pm

Hi Stefano,

Just to know if it’s possible somehow to insert an image from an url and not from my computer.



Patung · July 27, 2010 at 6:52 pm

Hi Stefano, yes, what Ian said, is there any chance of getting this compatible with WP 3.0? I guess what needs to be done is a check on blog_id, and assigning unique names for the images by blog_id.

Ian · July 22, 2010 at 4:24 pm

Hi Stefano,

Thank you for this plug-in – i am using it on WordPress 2.9.2 and it works great. I am now creating a new website using WordPress 3.0 with Multi sites enabled. I have tried to use your comment image plug-in again but i have found a problem & was wondering if you are making any amends to allow your plug-in to work with WordPress 3.0?

As your plugin uses the comment ID, across a multi site installation the images get over-written.


Site 1 – first comment including img1.jpg
Site 2 – First comment including img2.jpg

When you look back at Site 1 the image is now using the same image from Site 2.

Hopefully this all makes sense & i look forward to your reply.


mik · July 12, 2010 at 11:52 pm

hi good one I like it

i use it to make it easy for user to upload image in a post not in comments and it upload the image but did not show it in post! is there a way to do that please?

in other word how can i make work for post too.


bethany · April 6, 2010 at 6:44 pm

I would like to see if this works

Mark · March 3, 2010 at 12:10 am

When a user tries to upload anything other than JPEG it gives them a very ugly error with some of my root folders exposed. Any chance of implementing some error handling so a prettier error message is produced telling them to only upload JPGS?

here is what they currently see:

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/piphut/domains/ on line 213

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: ‘/home/piphut/domains/’ is not a valid JPEG file in /home/piphut/domains/ on line 213

Thanks for all your hard work

firefly · February 22, 2010 at 9:24 am

I installed your plugin and try to upload some images.
There is no error message, everthing’s fine, but no uploaded images appeared on the server in the Comment-Image folder.
The permission is 777.

Don’t know where’s the problem.
Thanks for help.

Patung · February 21, 2010 at 5:12 pm

Hi Satollo, yes I understand, I actually got another quicktags plugin to work instead of the other one, so it’s ok now.

Patung · February 11, 2010 at 6:05 pm

It doesn’t work for me if I have this plugin enabled – It just won’t upload the image at all, and the display of the Upload Image button is a little different to normal.

I’m bummed.

    Stefano · February 12, 2010 at 11:36 pm

    I have no time to test incompatibilities on that period of year. I annotated the conflicting plugin thought.

David · February 10, 2010 at 9:56 pm

Hi Stefano

Many, many thanks for all your work in creating a great plugin – works a treat! I’d love to be able to view the full size images after clicking on the thumbnail in a thickbox rather than in a standard browser window. Is that possible?



    Stefano · February 11, 2010 at 11:31 am

    Thick box and other frameworks like that are difficult to manage cause each theme can include something incompatible with them. Yes, I can try to add such features but it usually will conflict with other plugins or themes… so, I’ll try, no grants it’ll work

Tammy · February 1, 2010 at 10:05 pm

Hi Stefano,

First: Great plugin!
Second: but…. if somebody tries to upload an image which is smaller than the thumbnail width, it becomes enlarged to the thumbnail width. For example I left the thumbnail width 200 pixel and someone uploads a 40×40 pixel smiley, that smiley is shown as a 200×200 pixel image. Which look quite rough. I like to avoid this behavior. Do you have a solution for this?

Many thanks!

    Stefano · February 3, 2010 at 10:44 pm

    Yes you’re right, the plugin needs some improvements… ASAP when I’ll have enough time! :-)

jj · January 29, 2010 at 10:47 am

Dear Stefano,

I stalled the Comment Image plugin.

I can successfully upload image on the comment.
But when I click on the thumbnail image. I got the error message. The file is not accessible. I check the file attribute in the Comment-Image folder. The permission is 600, not 664.

Please advise how to handle this.

Thanks & best regards,

Marlie7 · January 25, 2010 at 8:22 pm

I installed the plugin and uploaded a picture. The picture is in the comment-image folder and displays as I would expect it to in the admin view of the comment on the admin dashboard. But on the website user view of the comment, it does not display.

Any thoughts on what might be going on?

    Stefano · January 26, 2010 at 9:40 am

    The “code” that inject the picture on admin side id the same for the public side. May be your theme cleans up comment text in any way?

mystafa · January 25, 2010 at 8:06 pm

I have a problem with the site. Can you help

Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 1213 is not allowed to access /home/polatli/domains/ owned by uid 1001 in /home/polatli/domains/ on line 84

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: Unable to access /home/polatli/domains/ in /home/polatli/domains/ on line 203

Warning: imagecreatefromjpeg(/home/polatli/domains/ [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /home/polatli/domains/ on line 203

Warning: Cannot modify header information – headers already sent by (output started at /home/polatli/domains/ in /home/polatli/domains/ on line 868

    Stefano · January 26, 2010 at 9:42 am

    Change the permissions of comment-image folder. That folder is create by comment image plugin on activation, but if it’s set read only or if it was owner changed, the plugin cannot store the images.

Jens · January 4, 2010 at 1:24 pm

Hi Stefano,

really really great plugin, I love it :)
I thought I’ll have to give up the search for a comment image plugin until I found yours.

But there is one thing that would be a great option:
Defining the store path individually. Actually it is hardcoded to ../html/wp-content/comment-image but as others I also use one WordPress installation for multiple blogs, so I have the need to define individual subfolders for each blog (like ../html/wp-content/comment-image/blog_1 etc.).

Another goodie would be an option for Lightbox plugin (sets a rel=”lightbox” attribute to the link to the big size of each image).



kimyx · December 19, 2009 at 6:08 am

Installed your plug-in this week and it wasn’t working. No uploaded images appeared on the server. After adding some debug logging I determined that my IE8 test browser was uploading files with mime type image/pjpeg.

Then it was a simple matter of adding

case ‘image/pjpeg’:

wherever you already had image/pjpeg and it started working!

Thanks for this nice plugin.

    Stefano · December 19, 2009 at 3:06 pm

    Patched, thank you very much!

Wisenteta · December 18, 2009 at 1:47 pm

Sorry for the panic. The field is displayed, you can browse the local host and indicate the path to a picture. But after submitting the text commend is added, but there is no picture. Please, could you give any idea how to fix this issue. Thank you!

Wisenteta · December 15, 2009 at 3:21 am

Don”t work plugin (((( site: Help!!!

    Stefano · December 18, 2009 at 1:25 pm

    Don’t work is not of much help to find a solution. The image field displays in your blog, where the error? (I have not tried to submit a photo)

Dan Pouliot · December 10, 2009 at 7:25 pm

Thanks for the great plugin! When I go to the settings, I get:

Fatal error: Call to undefined function comment_image_extra_options() in /home/content/m/a/n/mansionadmin/html/guestbook/wp-content/plugins/comment-image/options.php on line 66

any help is greatly appreciated!

jj · December 4, 2009 at 9:55 am

Dear Satollo,

I installed the plugin. But I do not know what is wrong.

You can check the link here.

If you see the comment, the image does not show properly.

If you check the link of the image, it is not correct.
The current link is

But it should be

Please help and advise what’s wrong.

Thanks & best regards,

    Stefano · December 4, 2009 at 10:35 am

    Have you version 1.0.3? I fixed it some days ago.

      jj · December 4, 2009 at 6:57 pm

      Yes, I’m using version 1.0.3.

      You can try to upload an image on my site.

      I don’t know what’s going wrong. Please help!


jeff · December 3, 2009 at 6:48 pm

Thank you for the plugin.

I don’t know what is wrong but the image is not showing.
After upload, I found that the file is in the “comment image” directory.

then I found that the link is the correct.
the link now is
But the right link should be

My blog is in a directory called abc.

Please advise how to fix this problem.

pzstm · December 3, 2009 at 3:00 am

Is there a way to upload multiple files? Maybe in the next version you an add this option to the option page. Another request: maybe my users want to upload also png files…. you can add this option also to options menu in the next version maybe.
Anyway I really appreciate for your work.

Zsolt from Hungary

Patung · November 20, 2009 at 5:43 pm

No I didn’t find any security lack, I said I used ANOTHER image uploader plugin in the past, and the uploads folder got hacked. Not yours. I was just wondering about security, that’s all. Because to get your plugin to work I had to set the upload folder to 777.

Btw, I added target=”new” to the a tag and alt=”” to the img tag, might be an idea.

Patung · November 20, 2009 at 4:28 pm

Wouldn’t this be a security risk? The other image uploader that I tried once allowed people to hack into the uploads directory.

    Stefano · November 20, 2009 at 4:37 pm

    Please help me to understand where is the security lack you found!

Walter van Ruitenbeek · November 16, 2009 at 2:49 pm

Hi Stefano,

great plugin, it exactly does what i needed on my site. Thanks for that!!!

I have one problem now: if I want to manual added the Image selection field I do not get a button to search for the fime on the computer.

Is it possible to get this?

    Walter van Ruitenbeek · November 24, 2009 at 1:56 pm

    I solved the problem. The mistake was that i copied the tag:
    directly from your website. But then you get the wrong””
    Instead of the tag of your website you need the following tag:

    Small difference, but with consequences.

    Now it is working and I am glad with it!

      Walter van Ruitenbeek · November 24, 2009 at 2:02 pm

      I solved the problem. The mistake was that i copied the tag:
      directly from your website. But then you get the wrong””
      Instead of the tag of your website you need the following tag:
      input type=”file” name=”image4″/ this surroudend by
      Small difference, but with consequences.

      Now it is working and I am glad with it!

Jordan · November 12, 2009 at 12:05 am


I love this plugin so far, I had one question, what would be the process for adding an option for the person to upload Multiple images (e.g. let’s say I want to allow them to upload 3 images to a post.)

Any ideas for how to do that, I’m fairly good in PHP and Javascript (but not really an expert).


Rhonda · November 10, 2009 at 11:54 pm

Hi, an update just came available for your plugin so I did the automatic upgrade. Everything appears great except that no image uploads when I tested it.
You can try it on the site I’m building


    Stefano · November 11, 2009 at 12:05 am

    You use AJAX for comment submission: AJAX cannot upload files.

      Rhonda · November 11, 2009 at 1:57 am

      Thank you for your prompt response. I’m not using Ajax comments. I was using the ImHuman captcha plugin. I uninstalled ImHuman and now your image uploader works. Nice. But now I gotta find another captcha.
      Thanks so much.

Joe Kumpe · November 10, 2009 at 8:29 pm

Hey Stefano,
I just tried to upgrade to the most recent version released (1.0.2). Now when i try to upload a comment it says “Warning: Cannot modify header information – headers already sent by (output started at /home/content/k/k/o/kkohosting/html/jfo/wp-content/plugins/comment-image/plugin.php:360) in /home/content/k/k/o/kkohosting/html/jfo/wp-includes/pluggable.php on line 865”

It also said that it couldn’t find comment-image-extras.php in the comment-image folder. I removed that action from the plugin.php so that is no longer a problem. I can’t find anywhere that the plugin.php is callin the headers so I can’t remove the error. I tried visiting the previous versions portion of your site to download the previous version of this since it was working then and it says the page doesn’t exist.

So my question is one: do you know how to fix the above warning or two: do you have a place that I can download the previous version of your plugin i really like it and it’s the only one that can do what i want. Thank you very much for your work.

    Stefano · November 10, 2009 at 11:40 pm

    There is an error, I’ve released an update. Does that solve for you?

      Joe Kumpe · November 10, 2009 at 11:44 pm

      Yes that fixed it thank you very much :D

        Stefano · November 10, 2009 at 11:46 pm

        Not at all, thank you to send me the problem so quickly (before to be submerged of bug submission…) :-)

Manuel Martensen · October 28, 2009 at 2:44 pm

It would be very nice if you could re-write the “Image field label” input (under comment-image/options.php) to accept HTML, so one would b able to wrap text with a span or div for styling and to write proper special characters like the German umlauts (ä as ä etc).

Right now, when i write “Bild einfügen” (engl. Insert a photo) the umlaut ü is not encoded.

Or (if this is possible without a big hassle) just mail me what I have to change in the plugin.

And of cause a huge THANK YOU for your plugin! :)

Nick Soper · October 5, 2009 at 4:49 pm

Hi There,
I was wondering how to display the image in your comments? If possible I would like to see if the image is available, and get the path to the image.

Stas · September 8, 2009 at 8:53 pm

Hello Stefano,

Nice plagin, thanks a lot! Thumbnailing, auto-deleting of image when comment is deleting – great!
I just have one problem – my commentators are too active with attaches, they produce 3 mb attaches per day – and it grows. It will be great to have ability to limit max size of attach and to limit the user by some number of attaches (for example, 3 attaches per day per user). I’m going to implement the last feature myself – storing corrent number of attaches and current date in cookies.

Jesus · September 4, 2009 at 4:56 pm

Hi Stefano,

I have just installed your Comment Image pluggin and I like it, but I think there is one greatfull option that would make it better: add the posibility to choose in which posts you want to let the users to add comments. It could be just a checkbox on every new one (just like choose the categories or tags) to check if this post will permit to add images or just it won’t.

Anyway, thanks for the pluggin.

Leave a Reply