-
Website
http://sniptools.com/ -
Original page
http://sniptools.com/vault/thumbnailing-with-netpbm-and-movable-type -
Subscribe
All Comments -
Community
-
Top Commenters
-
jamesstevn
1 comment · 1 points
-
annyyu
1 comment · 1 points
-
amira_fcis
1 comment · 1 points
-
robfluth
2 comments · 1 points
-
pratish
1 comment · 1 points
-
-
Popular Threads
I don't know what I am doing wrong, as I have followed the instructions (many times over, in fact) and still can't get it to work.
Currently, I am just getting a server error after I click the upload button. Never gets to the dialog box where I expect it should mention the thumbnail option.
Any ideas?
C:\sambar53\perl>perl -Iextlib -MIPC::Run -e 1
Can't locate IPC/Run.pm in @INC (@INC contains: extlib C:/sambar53/perl/lib C:/sambar53/perl/site/lib .).
BEGIN failed--compilation aborted.
I installed the contents of the IPC.zip file in my MT/extlib directory and still get this same error message.
I'm starting to think that I am just not going to be able to do the thumbnails... :(
I have some questions --
1. Do you have the netpbm binaries that are compiled for Windows: http://gnuwin32.sourceforge.net/packages/netpbm.htm
2. In your mt.cfg, what is the path you give to netpbm?
3. In your last message, you mentioned the IPC error, this has to do with Run.pm not being found. Can you try putting IPC::Run in your "perl/site/lib" folder as well? (This is kludgish but just to see if it'll work)
2. c:\sambar53\cgi-bin\mt\netpbm If you want to see my mt-cfg details, I have installed mt-medic at this address: http://198.109.164.98/cgi-bin/mt/mt-medic.cgi (The password to login to view the configuration is 'yasgur')
3. I just tried copying the IPC folder into the perl/site/lib and still get the same problem...
Thanks for the help!
-=kt=-
I just tried uploading a 449 KB .jpg file, and got the server error (500), but if I selected a smaller file 22KB I get the normal dialog box asking me if I want to create a popup or embedded image. But not the thumbnail prompts. So, it seems I can upload smaller images but somehow a larger one causes some kind of error.
Maybe whatever is causing this error is also the cause of the NetPBM not working? I don't know... I thought I'd add this since I just noticed this happening in case it might help you to help me! Thanks again for the help!
-=kt=-
Come to think of it, it is definitely worth it to roll out your own little pic album script if you can find the time. Takes a max of 1 week or so but you are free from all the quixotic pixels (if you know what I mean) type workarounds.
As for the thumbnails, that I agree with totally. After a while thumbnailing is a lot simpler without online "intervention". But that would defeat the purpose of this page so I'll try to find some ideas for Kurt anyway :-)
Took me a couple hours, but suddenly, out of the blue, mt-check said the magick ;) words!
Image::Magick...
Your server has Image::Magick installed (version 5.26).
I really have no idea what I did different this time, if it was a different version of the file or what, but Image::Magick is installed and seems to work! The only glitch I am suffering is related to my local site/archive paths in MT. My web files are on my d: drive and no matter how I configure things, the path MT creates for the thumbnail image includes the local path (d:/docs/blog...) in the middle of the URL. I can manually fix the URL before posting, so I'm considering it working!
Thanks again for the time and effort you gave toward helping me. I really appreciated the fact that you were willing to give me a hand, even though we don't know each other!
Have a great day!
-=kt=-
I still have a big problem, though, it seems. After the thumbnail options, I get this error message: >>> Broken pipe: write( 14, [...] ) at /usr/home29/hinrichs/public_html/cgi-bin/movabletype/extlib/IPC/Run/IO.pm line 582
Of course I changed the mt.cfg, too. :-)
I'm happy for a number of reasons. I found out that [function+delete] does a forward delete on laptop keyboards and my friend mz_informed showed me a program called uControl that lets me set [function+touchpad-drag] like a mousewheel. The way i...
Will let you know if I choose to investigate it any further in the future, although doesnt seem likely to be honest.
Glad you got NetPBM working though (ditto for Ruthie).
I downloaded all kinds of different netpm packages, and none looked like what you provided with your zip-file here. I was totally confused what I needed to upload. Having wasted two hours, with your tutorial I was set within 5 minutes! Thank you!
MT::App::CMS=HASH(0x3f5708) Illegal character \015 (carriage return) at extlib/IPC/Run.pm line 1.
Please help me cause I need the possibility to creat thumbnails with my MT.
Thank you so much.
Cheers Eva
perl -Iextlib -MIPC::Run -e 1
i dont heve a shell access..
Is there anyway i can find if nt is calling netpbm lib ?
Just a little clarification though, when
1)I execute the "perl -Iextlib -MIPC::Run -e 1" do I have to be in any particular directory to run that? And
2)For me I executed that line but nothing seemed to happened. I thought that was a good sign, until I tried uploading in MT and it didn't offer me the thumbnail option.
Thank you. Regards.
If it does nothing, that is good. But if your MT still does not show the thumbnails, then get the IPC from my website as suggested in this thread (4th comment above). If you have followed the NetPBM instructions exactly as stated here, then give me another shout.
Hope it works out for you.
yeah I tried that but still no cookie. My server runs on Linux and I used a gzip file initially I found somewhere, and I tried the ZIP from above. Well, I think my arms are up and waving a white flag. :(
PS: I just realise it says "On July 27, 2003 09:44 PM thus >spake
What happened before was I put netpbm in my MT directory. Try this just in case anyone else can't get it to work.
Regards.
Maybe a stupid question, but do i have to re-build MT or something?
At the moment i am recieving no errors so i have no pointers to give.
MT-Check isn't checking IPC::Run as Shashank suggested before, so i can't even confirm if this is working either.
One question: I am presuming my host doesn't have Netpbm (and therefore the libraries you mentioned), so is it right for me to just install the binaries as directed above or do i need more?
also, tell us your folder structure. for lyrrad, the gentleman who posted above you, it seems paths were crucial.
I've come here from the MT support forums too. Many thanks and congratulations on a well written tutorial (and site!).
Unfortunately, I'm having the same problems as nosa: I've installed NetPBM under my ..www/mt/netpbm directory with the correct permissions, and I'm not getting the create thumbnail option at all now.
I don't have shell access to my webserver, so I can't verify that libraries work properly by running the command line suggestions in point 4. mt-check doesn't specify anything about IPC::Run either.
Its rather frustrating since the reason I'm trying to setup NetPBM is that the default MT setup with ImageMagick doesn't work. I've spent hours scouring the MT support messageboards, but despite many people reporting the same problem, the only hint of a resolution was to use NetPBM (with a link to this post).
I've to'd-and-fro'd with my webhost on this. They claim both ImageMagick and NetPBM are installed correctly on their Linux servers. But the "out-of-the-box" MT setup causes Apache to throw a 500 Internal Server error when trying to use the create thumbnail feature. Pointing mt.cfg at the main NetPBM install (under /usr/local/)only throws the same error. Notably, I get the option to "create thumbnails" in _both_ cases.
Alas, after following your instructions, I no longer even get this option.
Any ideas?
Thanks for the kind words. I can only offer a couple of suggestions/notes --
(1) You say you dont have shell access. Without executing the NetPBM or IPC::Run, it is kind of difficult to figure out what is going wrong. Could you perhaps ask your host to execute the two commands inside the correct directory on your server and let you know the output? I believe it is a reasonable request.
(2) Secondly, don't let your difficulties with NetPBM keep you from thumbnailing on your MT website. You'll soon realize (after you have used MT for a while) how painful the thumbnailing stuff is, it is really a lot more productive to just KNOW your folder structure and use Adobe PS or Paintshop to do auto thumbnailing (you can create batch jobs in PS for example) and just upload the stuff in to the right folders, and then use whatever MT templates you are using, e.g., the QuixoticPixels template.
Let me know how it goes.
perl -Iextlib -MIPC::Run -e 1
What am I suppose to do with this? I download all the required file and upload all the necessary file to my hosting server accordinly to the instructions but still can't see the thumbnail option.
I have changed the instruction to be a little more specific. :) Basically, you can execute that line in your shell from your MT folder (one up on NetPBM). For instance, this folder:
/home/DOMAIN/www/mt/
Hope this helps. Thanks for pointing out the half-baked instruction.
Thank you for the help. Sorry I don't know what do you mean by "shell". Should I execute it by "http://www.mydomain.com/movable/perl -Iextlib -MIPC::Run -e 1 ?.
Thanks
Thank you. Is it necessary to run that command in order to get the module function?
I used to install other modules which my hosting server doesn't have in the extlib and it's works fine but this one seems not working.
Thank you very much for the help. I saw in the NetPBM's website that the download file that you provided are categorized as an old type. May it does'nt work with Perl version 5.006.
I noticed there are many download version, very confused which one to download. My hosting server using Perl version 5.006. on windows 2000
1. Download the Netpbm binaries file (follow your link)
2. Upload it into the mt folder(in may case it's movable/netpbm)
3.Download and upload the IPC folder into the Extlib folder
4.Changed the MT.cfg file in these two lines -
ImageDriver NetPBM
NetPBMPath /home/domain/www/movable/netpbm
Is there anything I left out? Can't seems to get it to work....lol stranged!.
When I try to run upload an image I get the following message:
>>Can't locate auto/Image/Size/jpegsize.al in @INC .... at ... (my directory info)/cgi-bin/movable/extlib/Image/Size.pm line 233
... followed by ...
MT::App::CMS=HASH(0x8367258) Can't locate auto/Image/Size/autosplit.ix in @INC ... /cgi-bin/movable/extlib/Image/Size.pm line 26
-------------------
It turns out that the image file has actually been copied into the target directory before this message appears. I am not especially concerned about thumbnailing - but I can't get past this message to manage the images within entries, etc.
You said: >>it is really a lot more productive to just KNOW your folder structure and use Adobe PS or Paintshop to do auto thumbnailing (you can create batch jobs in PS for example) and just upload the stuff in to the right folders, and then use whatever MT templates you are using
Thanks in advance for any suggestions you might have.
You said: >>it is really a lot more productive to just KNOW your folder structure and use Adobe PS or Paintshop to do auto thumbnailing (you can create batch jobs in PS for example) and just upload the stuff in to the right folders, and then use whatever MT templates you are using
Any idea what might be calling Size.pm if not ImageMagick?
So it looks as though I've missed something in telling MT that I'm not using ImageMagick and that I am using NetPBM - and therefore, apparently don't need Size.pm?
Am I making sense? Have I missed a setting somewhere?
If you have "ImageDriver NetPBM" in your mt.cfg, then it should be using NetPBM, no worries. As for the message, I am not sure what is driving it. I can only suggest you to redo the steps in this tutorial once again, one by one. You really should not be getting error messages in your "extlib/Images" folder, we have set up NETPBM inside the mt folder itself. Keep me posted.
In the meantime, can you tell me about the proces for manually loading a pic? Into which file can it be loaded so it isn't wiped out by the next update?
Thanks again - I'll let you know when I get this figured out - in case someone else has a similar problem later.
I followed the instructions, but I keep getting the error 500 page (which I got when I was trying to use ImageMagick too).
My info:
Uploaded the NetPBM stuff from your zipfile in /home/flabber/public_html/netpbm/
Chmodded it all to 755.
Then I got the error that IPC was missing, so I installed IPC::run with CPAN.
Running "perl -Iextlib -MIPC::Run -e 1" then resulted in nothing, so that's good, right?
Then testing creating a thumbnail resulted in an error 500.
I uploaded the IPC stuff to /home/flabber/public_html/extlib/IPC/ just to be sure on the IPC part.. Didn't help.
My entries in mt.cfg:
ImageDriver NetPBM
NetPBMPath /home/flabber/public_html/netpbm
Thanks in advance for your reply!
i get the thumbnail option to show up now, but when I hit "popup" or "embed" the next screen i see is:
Broken pipe: write ((gibberish gibberish gibberish lots and lots of gibberish))
at extlib/IPC/Run/IO.pm line 582
any thoughts?
thanks
(2) Which IPC run are you using? The files from the fourth comment here ( http://sniptools.com/av/IPC.zip ) should work on your system. Please run the test again.
Let me know how it goes.
i'm running Version 2.64 of MT
i just re-installed the IPC you site there in my extlib directory and i'm stil having the same problem - still getting that weird "broken pipe" error
thanks for your help on this
1. I wasn't sure if the Netpbm binaries you are distributing would on a linux server, since the instructions don't give details. They do. The Netpbm website (which you have linked) will point you to a dead link for the "official" linux distribution.
2. I tried putting the Netpbm folder under the /mt folder on my server, but for whatever reason, that did not work. So, I just put the folder under /public_html with success.
3. My host (Dayana Host) apparently did not have IPC::Run installed, or it could not be found by MT, so I installed it under /mt/extlib with success. Perhaps you should include instructions for downloading and installing IPC::Run in the main text of your tutorial. Right now, the details are in the comments. This is probably a common problem rather than an exception.
4. Finally, one thing that is not made clear anywhere until you notice it yourself... when using Netpbm (and probably the same with Image::Magick), you will be creating new image files which are the thumbnail images, and they will take up space. Folks need to keep this in mind as using thumbnails can eat up your disk quota. This might seem obvious to the experts among us, but it was not obvious for me until I noticed how much extra disk space I was using. Also, the Netpbm and IPC::Run files take up space too!
Many thanks for your tutorial.
Solution:
You need to install the perl-ImageMagick rpm. I installed this, yelled, "Thumbnail options, show thyself!" and I had instant gratification!
As I'm using apt-rpm, all I had to do was type:
apt-get install perl-ImageMagick
Hope that helps anyone who's trying to get those thumbnails working!
Whoops.
ImageDriver NetPBM
NetPBMPath /home/myusername/public_html/netpbm
Nothing works. The thumbnail option isn't showing up in my File upload window in MT. What am I doing wrong?
I can create thumbnails for images under 64k in size. Bigger than that and I get...
Resource temporarily unavailable: write( 9, '...' ) at extlib/IPC/Run/IO.pm line 582
Has anybody seen or fixed this problem?
To test this, I made changes to MT's Image.pm so that the NetPBM package wrote all of the intermediate results to temporary files instead of using pipes.
These changes are under package MT::Image::NetPBM
In sub init ...
changed
IPC::Run::run(\@in, '{file} ? \undef : \$image->{data}), '|',
\@out, \$out, \$err)
or return $image->error(MT->translate(
"Reading image failed: [_1]", $err));
to
IPC::Run::run(\@in, '{file} ? \undef : \$image->{data}), '>temp1');
IPC::Run::run(\@out, 'temp2');
open (TEMP, ";
close(TEMP);
In sub scale ...
changed
if ($type eq 'gif') {
push @quant, ([ "${pbm}ppmquant", 256 ], '|');
}
IPC::Run::run(\@in, '{file} ? \undef : \$image->{data}), '|',
\@scale, '|',
@quant,
\@out, \$out, \$err)
or return $image->error(MT->translate(
"Scaling to [_1]x[_2] failed: [_3]", $w, $h, $err));
to
if ($type eq 'gif') {
push @quant, ([ "${pbm}ppmquant", 256 ]);
}
IPC::Run::run(\@in, '{file} ? \undef : \$image->{data}), '>temp3');
IPC::Run::run(\@scale, 'temp4');
if ($type eq 'gif')
{
IPC::Run::run(@quant, 'tempq');
IPC::Run::run(["cat"], 'temp5');
}
IPC::Run::run(\@out, 'temp5');
local $/=undef;
open (TEMP, ";
close(TEMP);
In my case, the temp files are wirtten (by default) to my MovableType installation directory (where my MT .cgi files are).
There may be an easier way to fix the real problem or cleaner ways to make these changes, but this seems to be working for me and for images over 64k in size.
Also, since the NetPBM download included 'pngtopnm' and 'pnmtopng', I added 'png' file support by changing sub init
from
my %Types = (jpg => 'jpeg', gif => 'gif');
to
my %Types = (jpg => 'jpeg', gif => 'gif', png => 'png');
I thought the 'resource temporarily unavailable' problem might be related to using pipes in the IPC::Run package.
To test this, I made changes to MTs Image.pm so that the NetPBM package wrote all of the intermediate results to temporary files instead of using pipes.
These changes are under package MT::Image::NetPBM
In sub init ...
changed
<pre> IPC::Run::run(\@in, '<', ($image->{file} ? \undef : \$image->{data}), '|',
\@out, \$out, \$err)
or return $image->error(MT->translate(
"Reading image failed: [_1]", $err));</pre>
to
<pre> IPC::Run::run(\@in, '<', ($image->{file} ? \undef : \$image->{data}), '>temp1');
IPC::Run::run(\@out, '<temp1', '>temp2');
open (TEMP, "<temp2");
$out = <TEMP>;
close(TEMP);</pre>
In sub scale ...
changed
<pre> if ($type eq 'gif') {
push @quant, ([ "${pbm}ppmquant", 256 ], '|');
}</pre>
IPC::Run::run(\@in, '<', ($image->{file} ? \undef : \$image->{data}), '|',
\@scale, '|',
@quant,
\@out, \$out, \$err)
or return $image->error(MT->translate(
"Scaling to [_1]x[_2] failed: [_3]", $w, $h, $err));
to
<pre> if ($type eq 'gif') {
push @quant, ([ "${pbm}ppmquant", 256 ]);
}</pre>
IPC::Run::run(\@in, '<', ($image->{file} ? \undef : \$image->{data}), '>temp3');
IPC::Run::run(\@scale, '<temp3', '>temp4');
if ($type eq 'gif')
{
IPC::Run::run(@quant, '<temp4', '>tempq');
IPC::Run::run(["cat"], '<tempq', '>temp5');
}
IPC::Run::run(\@out, '<temp4', '>temp5');
local $/=undef;
open (TEMP, "<temp5");
$out = <TEMP>;
close(TEMP);
In my case, the temp files are wirtten (by default) to my MovableType installation directory (where the MT .cgi files are).
There may be an easier way to fix the real problem or cleaner ways to make these changes, but this seems to be working for me and for images over 64k in size.
Also, since the NetPBM download I found included 'pngtopnm' and 'pnmtopng', I added 'png' file support by changing sub init
from
<pre> my %Types = (jpg => 'jpeg', gif => 'gif');</pre>
to
<pre> my %Types = (jpg => 'jpeg', gif => 'gif', png => 'png');</pre>
THANK YOU A MILLION TIMES.
(and of course, english is my first language. but thanks anyways. and sorry for shouting, but the internets a big place.)
exec failed: Text file busy at lib/MT/Image.pm line 151 at lib/MT/Image.pm line 151
when trying to upload a file with thumbnails. This is a huge improvement on the server error, but I must admit that I'm mystified at this stage! Any advice on what to troubleshoot next?
By the way, this is a fantastic resource!
Thanks!
I've never been able to get Image Magick working with MT, but this did the trick.
Fantastic :)
thanks, ill be sure to link you on my blog :)
Well, my host decided to change their installation of ImageMagick, the software that Movable Type uses to generate it's image thumbnails. No thumbnails for me. So, I went in search of a solution, and found that MT can use an...
I never though I was THAT stupid.
(1) Have you followed all the steps outlined in this tutorial?
(2) Did you download the correct Netpbm libraries? (For Windows, that is?)
(3) What is the error you get? Do you have "Shell" access (Telnet/SSH) that'd allow you to execute commands? E.g., what error do you see when you execute step 4 in the tutorial?
Let me know. It should not be so difficult to sort out. Btw, I love the mast pic on your website!
Thanks (in anticipation!)
annette
chmod 755 *.*
The "*.*" is the same as on any OS, it is a wildcard that means all files. If you don't want all files then just specify the files you wish to change the mode for.
If you don't know what a telnet shell is, then even in your FTP software you may be able to just select the files on the server, then "Change Mode" or anything such. Most modern FTP software will allow for this.
Please let me know if you have any questions.
This information was very hard to come by. If you hadn't taken the time to post this, I'd still be lost.
I had the IPC error and uploading the files you suggested worked perfectly for me. It took about 5 minutes after finding your page to get thumbnailing to work - and I had previously fought with ImageMagick for several days with no luck... You rule, that's all.
Does anyone have any examples of a good photoblog format? I'm trying to use a nice once from Quixotic.com, http://www.quixoticpixels.com/index.php?qp=photoblog
It uses ImageMagic but I'm going to try and integrate Netpbm here.
Thanks again!
i would very much appreciate your help,
i installed the ipc package after getting the ipc-error but now i get this message:
perl -Iextlib -MIPC::Run -e 1
Can't locate fields.pm in @INC (@INC contains: extlib /opt/KQperl/lib/sun4-solar
is/5.00405 /opt/KQperl/lib /opt/KQperl/lib/site_perl/sun4-solaris /opt/KQperl/li
b/site_perl .) at extlib/IPC/Run.pm line 1075.
BEGIN failed--compilation aborted at extlib/IPC/Run.pm line 1124.
BEGIN failed--compilation aborted.
I dont have any idea where this "fields.pm" should be or come from, do you?
Greetings Nana
The good news is that this is not a grave issue, my guess is that it's got something to do with your Perl version. Fields.pm is an important "pragma" for doing OOP in Perl. Can you run this at your shell prompt...
perl -v
...and let me know which version it is? Also, if you know, what OS (and version) are you using?
Shanx
thank you for answering so quickly, my computer crashed so i couldnt come back faster.
I ran the command and it gave me this:
this is perl, version 5.004_05 built for sun4-solaris.
Actually i am renting the serverspace and i dont know what system they are running.
Greetings Nana
I guess this is a message you may have to show to your server host, and ask them why you don't have access to Fields.pm. It depends on how they may have compiled Perl on the server for you. Just FYI, the latest version of Perl is 5.8.3, which is a LONG way off from the Perl version you seem to have.
Let me know what they say.
Cheers, Shanx
Problems using ImageMagick to generate thumbnails lead me to find a new way to process images in Movable Type...
Now when I upload an image file to my photoblog I get the MT dialog which asks if I want a thumbnail image in addition to the popup or embed choice. So far so good.
After selecting the thumbnail option, create a new entry and selecting the embedded image option and clicking OK, I got an error page with the following information...
++++++++++++++++++++++++++
An error occurred:
exec failed: Permission denied at lib/MT/Image.pm line 126 at lib/MT/Image.pm line 126 exec failed: Permission denied at lib/MT/Image.pm line 126 at lib/MT/Image.pm line 126
++++++++++++++++++++++++++
Any ideas as to why I'm getting this error?
I put the IPC tools in the /cgi-bin/extlib/IPC directory, uploaded all as ascii.
When the software goes to make the thumbnail, I get this error:
MT::App::CMS=HASH(0x83593c8) Use of uninitialized value in length at extlib/IPC/Run.pm line 3197.
I uploaded the Run.pm file three times just to make sure it made it. Any idea what's causing the error?
Second, what do you see when you execute IPC testing command (Step 6 of above article) on your shell prompt?
Third, what happens if you download the more recent IPC files from CPAN?
I receive the following output:
Can't locate IPC/Run.pm in @INC (@INC contains: extlib /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .).
BEGIN failed--compilation aborted.
After I uploaded the new IPC files I no longer get the option to make a thumbnail. It seems to have disabled it somehow. :(
I've installed NetPBM in the httpdocs. I've also installed IPC after the thumbnailing didn't work.
My worry now is that I've got the wrong version of NetPBM. When I used "dig this" at the top of the page, I get the following information:
Apache /1.3.27 ( Unix ) Python .org/'>mod_ Python /2.7.8 Python /2.2.2 mod_gzip /1.3.19.1a mod_perl /1.27 mod_throttle/3.1.2 PHP /4.3.2 Frontpage /5.0.2.2510 mod_ssl /2.8.14 OpenSSL /0.9.7c
So, as far as I know (and I don't know much) my server uses Unix, specifically Apache. When I go to search for a NetPBM version for Apache or Unix, I cannot find one. Plenty of Linux, yes...
Is there anything else that I can do?
Btw, I did modify mt.cfg, as stated in the tutorial.
Any insight into this will be greatly appreciated.
My environment:
OS: Redhat/Linux
Perl: 5.6.1
MT: 2.661
MT dir: /var/www/html/blog
MT.cfg in: /var/www/html/blog/cgi-bin
netpbm in: /var/www/html/blog/cgi-bin/netpbm
IPC in: /var/www/html/blog/cgi-bin/extlib/IPC
Using IPC version 0.75 I get nothing when I run
perl -Iextlib -MIPC::Run -e 1 in both the cgi-bin directory and the cgi-bin/extlib directory.
However, MT still does not display a thumbnail option when uploading files.
Using IPC verison 0.78 I get the following error:
Can't locate IPC/Run.pm in @INC (@INC contains: extlib /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .).
BEGIN failed--compilation aborted.
Any suggestions for what I might try next would be greatly appreciated.
Thank you.
What happens if you move the whole IPC folder to:
--> /var/www/html/blog/extlib/IPC
Let me know.
Shanx
and I can run perl -Iextlib -MIPC::Run -e 1 in both the /var/www/html/blog and /var/www/html/blog/extlib directories without error.
However, there is still no thumbnail option when uploading images in MT :(
Note: the extlib subdirectory was added to /var/www/html/blog merely to follow your suggestion, it previously did not exist
Maybe it would helpful if I described the contents of /var/www/html/blog and /var/www/html/blog/cgi-bin
/var/www/html/blog contains all the blog's html, templates, style sheets and syndication feeds.
/var/www/html/blog/cgi-bin contains mt.cfg, cgi files, lib, tmpl, and well basically everything else.
Is there any chance that if my host has NetPBM installed elsewhere there would be a conflict and thus MT is bypassing the thumbnail feature?
Any further assistance/suggestions would be greatly appreciated.
Thanks.
-Michael
Turns out I had to declare the path name to NetPBM from the root of server in the configuration file. Elsewhere in the file I only declare paths from the root of my account. Oh well, it works!
Broken pipe: write ((gibberish gibberish gibberish lots and lots of gibberish))
It's probably because that programs like jpegtopnm fails to run (libraries linking problems). try do a ldd on jpegtopnm and you may see that it can't find some libraries.
I've read the post, read all the comments, followed all directions.
I do not receive the IPC error, it's just that nothing has changed in my upload options at all. Exactly the same. No option for thumbnailing.
I've changed my cfg file, I've set permissions on the binaries, I've done it all. Grrr.
The only thing I could not do was check the binaries in my "shell". In fact, I don't even know what that means!
Thanks for this tutorial. I can't wait to get going.
Just to get this clear i did install NetPBM in my public html directory (who is called simple "www")and chmod it 755. My final path is this one:
/www/NetPBM
Next i have edited MT.CFG and changed the lines "ImageDriver NetPBM" (i simple removed the #) and changed the NetPBMPath to NetPBMPath /www/NetPBM/ (also removing the #)
Since i don’t have shell access i tried to do an upload of a picture... And them nothing :( No Thumbnail option :(
I checked if my webserve had IPC::Run perl module and since it doesn’t i have installed it on the /cgi-bin/MT/extlib/ folder having in the final this folder /cgi-bin/MT/extlib/IPC
And still nothing :( I also have checked my full paht to my server (in this case /mnt/web_j/d40/s40/a000k508/www) and changed the NetPBMPath to /mnt/web_j/d40/s40/a000k508/www/NetPBMPath and still no luck :(
I'm almost giving up and i hope some one can see what I’m doing wrong and tell me...
Btw, my MT version is 2.64.
Thansk!
If i remove the slash i still don't get the thumbnail option... i also did the same thing using full NetPBMPath /mnt/web_j/d40/s40/a000k508/www/NetPBM and it also didn't show the option :(
Btw, thanks for you help :)
THANK YOU SO MUCH!!
Thanks from the UK!
http://www.dylanbeattie.net/magick/debug.html
quite possibly it is the same issue with Unix as well, perhaps the executables must also be located in the associated directory. Just a thought.
Prototype mismatch: sub Socket::IPPROTO_TCP > vs none at C:/Perl/lib/Socket.pm line 395
Prototype mismatch: sub Socket::TCP_NODELAY > vs none at C:/Perl/lib/Socket.pm line 395
If I try to upload a picture in MT, this message shows under the two buttons for pop-up and embedded image.
Any ideas on what is causing this? Thanks.
So I installed IPC::Run as well. Still no luck.
mt-medic at least says the config is ok, the paths and permissions are fine as well.
MT 3.121 really 'breaks' a lot of things that have been working perfectly with MT 2.61 - including image upload and XML-RPC (I had to install SOAP lite - grrrrrr!).
Once again thanks!
Pseudo-hashes are deprecated at extlib/IPC/Run.pm line 2452.
Pseudo-hashes are deprecated at (eval 14) line 68.
Pseudo-hashes are deprecated at extlib/IPC/Run/IO.pm line 556.
extlib/IPC/Run/IO.pm line 563.
Pseudo-hashes are deprecated at extlib/IPC/Run.pm line 3003.
Any suggestions to solve this?
Tutorial NetPBM mit Movabletype Wer statt Image::Magick das Perl Modul NetPBM verwenden will wird hier glcklich werden......
I read your very useful tutorial about MT and NetPBM. I've followed all the instructions, and now I get it to let me try and create a thumbnail, but when I click "pop up image" or "embedded image," I get the Broken Pipe error that a few on the thread have gotten. Do you have any idea for a fix for this? Any help is greatly appreciated!
Thanks :)
--
Arthur Che
arthur.che@gmail.com
http:// www.arthurhungry.com /
Many thanks.
Got an error: ./mt.cfg:317: variable 'NetPBM' not defined
What's that about?
I have done all what you said (except the 6th one because I don't have Shell access to my server), Now I can see thumbnail choice in upload image popup but when I click thumbnail it gives me this error message:
exec failed: Permission denied at lib/MT/Image.pm line 126 at lib/MT/Image.pm line 126 exec failed: Permission denied at lib/MT/Image.pm line 126 at lib/MT/Image.pm line 126
I saw that someone else had the same problem but couldn't find any answer from you in the comments. would be really gratefull if you can help me in this regard...
thanks again
cheers
I tried to install the NetPBM tool following your instructions but it does not work. I am running MT 3.16 with dynamic publishing on a Windows 2003 Server, running php.
In the mt.cfg file, here is what I have:
ImageDriver NetPBM
NetPBMPath /cgi-bin/mt/netpbm
Should I have uploaded the NetPBM files to /mt-static, which is outside the cgi-bin folder, instead of the above?
I have also uploaded the IPC files to:
/cgi-bin/mt/extlib/IPC
Then in /cgi-bin/mt/ I ran this command:
perl -Iextlib -MIPC::Run -e 1
and this is the error I get:
Prototype mismatch: sub Socket::IPPROTO_TCP > none at c:/Perl/lib/Socket.pm line 395.
Any help will be much appreciated.
Indebted to you.
--R.
Perl version: 5.8.6
--R.
Those are warnings rather than errors. Do they block NetPBM from working at all?
[Rant]This Socket.pm problem is one of the many reasons Perl is a PITA and many people use the ilk of PHP. [/Rant]
I frankly don't have time to help out any more, but a meaningless question - have you tried Image::Magick? It could be a lot simpler yet help you do whatever you want to do with NetPBM.
Shashank
Thanks a ton!
I get the thumbnail option to show up now, but when I hit “popup” or “embed” the next screen I see is:
Broken pipe: write ((gibberish gibberish gibberish lots and lots of gibberish))
at extlib/IPC/Run/IO.pm line 582
Any thoughts for this unresolved problem?
Thanks a lot !
your post are very coool
i install netpdm in 20 min.
works really good.
very thks.
mageDriver NetPBM
NetPBMPath /cgi-bin/mt/netpbm
Thanks a ton!
1.) Are there any features in netpbm that will allow the user to look at a preview of the thumbnail before they upload it, I'd think it would be ideal to get a preview function, cause as it is now, I am really guessing on the right percentages of my thumbnails.
2.) Do you mind if I link to your downloads link to the netpbm zipped file, if you do would you mind if I uploaded the file to my own server and let them download it from there. Pretty much the situation is, I have just started messing around with MT and figured as I figured out certain things I'd post blog/tutorials on the very same blog I was working on. I'd give the link to this article if you wanted, I just wanted to get the ok, don't wanna step on anybody's toes.
1.) Are there any features in netpbm that will allow the user to look at a preview of the thumbnail before they upload it, I'd think it would be ideal to get a preview function, cause as it is now, I am really guessing on the right percentages of my thumbnails.
2.) Do you mind if I link to your downloads link to the netpbm zipped file, if you do would you mind if I uploaded the file to my own server and let them download it from there. Pretty much the situation is, I have just started messing around with MT and figured as I figured out certain things I'd post blog/tutorials on the very same blog I was working on. I'd give the link to this article if you wanted, I just wanted to get the ok, don't wanna step on anybody's toes.
I do wonder though if there is a way to customize NetPBM so that it generates the thumbnail image code and then *inserts the code into the entry* so that you don't have to to click "show me the html."
I know that clicking "create new entry" inserts the thumbnail image code into the entry, but lets say you want to upload multiple pictures into the same entry and you want the code for each thumbnail image you upload to be inserted into the entry.
Is there a way to customize NetPBM do what i described above?
A live example of this description would be in Typepad. When you insert an image in a post, the image code is inserted for you into the entry, and you can upload multiple images and Typepad continues to insert the image code for each image uploaded into the single entry.
I would appreciate any pointers or resources to check out.
Thanks!
I used your instructions with ultimate succsess on my OLD MT installation.
Then I installed 3.2 and.....well Net Pbm DOES NOT work in that either....!! So I tried first with MT s soluton (only IPC) broken pipe- I did your solution with new files and all an I get broken pipe12. I really have tried everything, checked that I didn't di any mistakes in mt.cfg or whatever, and uploaded fresh files again in binary mode etc etc.
IS there anything else I could do?
Does NOBODY really know what is wrong? In this?
Hopeful
u
my %Types = (jpg => 'jpeg', gif => 'gif');
To
my %Types = (jpg => 'jpeg', gif => 'gif', png => 'png');
Otherwise you will might get a "file not found: /users/home/etc/netpbm/topnm"
http://forums.sixapart.com/index.php?showtopic=... >
Here is the mt-config:
ImageDriver NetPBM
NetPBMPath http://76.124.218.15:1226/cgi-bin/mt/netpbm
The NetPMB folder is in the cgi-bin\mt\forlder
IPC is in the mt/extlib folder
IPC is in the perl/site/lib folder
IPC is in the perl/lib folder
When I run perl -Iextlib -MIPC::Run -e 1
I get prototype mismatch errors
When I try to upload an image, I get no option to create a thumbnail.
What am I doing wrong?