Page 1 of 1

JPG images posted by mail through popfetcher plugin

Posted: Mon Jan 01, 2007 10:58 pm
by maria
I'm using Serendipity with "popfetcher" plugin in order to send messages by mail.
It's working properly, but I've noted now that when I try to send a image with jpg extension attached to the mail, the image is posted in the Blog as a combo saying:

X Click for full size image

Is there a possibility to have the title of the image instead this combo?
In fact, when I click on the combo the image can be viewed properly.

Thanks a lot for your suggestions.
Maria

Re: JPG images posted by mail through popfetcher plugin

Posted: Tue Jan 02, 2007 12:30 pm
by garvinhicking
Hi!

You could edit your serendipity_event_popfetcher.php file and replace this:

Code: Select all

$attlink = '<a class="popfetcherimage" href="' . $serendipity['serendipityHTTPPath'].$serendipity['uploadHTTPPath'].$maildir.$filename.'" target="_blank"><img src="'.$serendipity['serendipityHTTPPath'].$serendipity['uploadPath'].$maildir.$thumbname.'" alt="'.MF_MSG18.'" /></a>';
with this:

Code: Select all

$attlink = '<a class="popfetcherimage" href="' . $serendipity['serendipityHTTPPath'].$serendipity['uploadHTTPPath'].$maildir.$filename.'" target="_blank"><img src="'.$serendipity['serendipityHTTPPath'].$serendipity['uploadPath'].$maildir.$thumbname.'" alt="'.$filename.'" /></a>';
However, the cause of this more likely seems to be that a thumbnail image could not be created on your installation. Does thumbnail creation work if you upload images into the mediadatabase?

Did you configure s9y to use imagemagick? If so, are you sure imagemagick is available? If not, PHP needs to have the GD library compiled in. Otherwise no thumbnails can be created, which could lead to your problem that no thumbnails are displayed.

Regards,
Garvin

thumbnail

Posted: Tue Jan 02, 2007 5:09 pm
by maria
The Thumbnail seems to be working, does it?
I've done a "Rebuild Thumbs", this is the result:

Synchronizing the database with the image folder


Found new/modified file: archives/731.gif.
Found new/modified file: archives/cygcharset-12.dll.
Skipping file: .empty not readable.
Skipping file: 0000log.txt not readable.
Done (Synchronized 2 images).
Resizing


Using archives/731.gif as its own thumbnail because it is so small already.
Done (resized 1 images).


And for one image, if I do a resize, it is viewed as: Orig.: 18x20, Thumb: 18x20

Can we say that thumbnail is working well?

I don't remember the configuration of s9y with imagemagick, and I think that is not available. Is there any way to test it?

So, you say that PHP needs to have the GD library compiled in. How can I test it?

Sorry for my poor knowledge about all the system, but I'm very new in it...
And thanks again and again!!
Best regards,

Maria

serendipity_event_popfetcher.php file

Posted: Tue Jan 02, 2007 9:41 pm
by maria
Changes in the serendipity_event_popfetcher.php file:

$filename instead of MF_MSG18 do that the file attached appears with its name.

But it appear with a combo and a X inside, is it correct?

THANKS,

Maria

Administration-Configuration Image Conversion Settings

Posted: Tue Jan 02, 2007 10:15 pm
by maria
I've look in my Administration-Configuration menu of my blog:

Image Conversion Settings

Enter general information about how serendipity should handle Images
Use ImageMagick

Do you have ImageMagick installed and want to use it to resize images? No

Path to convert binary
Full path & name of your ImageMagick convert binary
/usr/local/bin/convert

Thumbnail suffix
Thumbnails will be named with the following format: original.[suffix].ext
serendipityThumb

Thumbnail dimensions
Static maximum width of auto-generated thumbnails
110

Re: Administration-Configuration Image Conversion Settings

Posted: Wed Jan 03, 2007 1:00 am
by garvinhicking
Hi!

Does your PHP then have the "GD Library" compiled in? You can see it in the output of a <?php phpinfo(); ?> script, or you can ask your admin of your server?

Best regards,
Garvin

GD library

Posted: Wed Jan 03, 2007 11:55 am
by maria
You are rigth Garvin!! My PHP doesn't have the "GD Library" compiled in.
It will be necessary to recompile the PHP.
THANKS!!