Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2004-10-14 13:58:28

akb
New Member
From: Media, Pennsylvania
Registered: 2004-09-30
Posts: 7
Website

Re: mdp_Automatic Thumbnail's

I attempted to install this as a txp_image.php replacement but had a few problems. I am using rc1 installed on a Mac (10.3), although I do not know what build as I simply retrieved via http.

First, the instructions indicate that if one wants to use ImageMagick, one is to go to line 370 and set the value for $im to 1. For me, line 370 did not seem to have any bearing all. I noted that within the first 20 lines (line 13) there was a place where RT_IMAGICK was set to zero. I reset that variable to 1, as it was also called on line 388 – in the line: <pre>$funct = mdp_im_or_gd(RT_IMAGICK);</pre>

I got was a blank screen when attempting to access the ‘images’ area of txp admin.

Next, I reset the altered value back to zero but the same blank screen occurred.

As for as I know I followed the installation instructions properly: I renamed the original as txp_image.php.original, copied the text of the replacement and pasted into a new file (via pico), named the new file txp_image.php. Did I miss something?

While I would love to be able to track this down myself, I am not sure how. Any thoughts on what is wrong or what I may need to do to track this down?

BTW – I have no idea if GD is installed, but as I self-installed ImageMagick I wonder if I made a mistake there. Any clue on what I should do to check that?

Offline

#62 2004-10-25 22:36:48

andrea
Member
From: la la land
Registered: 2004-02-24
Posts: 62
Website

Re: mdp_Automatic Thumbnail's

i just intalled the plugin/hack and it works fine on my txp 1.0rc1 except that i can’t change the width of thumbnails, they all come out 150px wide.

i changed “<code>define(‘RT_TW’,300);</code>” in txp_image.php from 150 to 300 but nothing happened.

any ideas why?

Last edited by andrea (2004-10-25 22:37:48)

Offline

#63 2004-12-10 04:51:43

Vitruvius
Plugin Author
Registered: 2004-09-21
Posts: 125

Re: mdp_Automatic Thumbnail's

Fullmonty – your fix does get 1.0rc1 working with imagemagik, but I have noticed that not all aspects of thumbnail sizing work… If you put in absolute dimensions it tends to ignore them and make up its own. If you specify a square (eg 75 × 75) then it works perfectly.

Hopefully this hack will be included in a future release of TXP or hopefully (insert sheepish grin) greenrift might release a new version…

Last edited by Vitruvius (2004-12-10 04:57:15)

Offline

#64 2005-01-11 05:04:39

icubyx
Member
From: India
Registered: 2004-12-16
Posts: 21

Re: mdp_Automatic Thumbnail's

hi. I have installed version 0.5 on local server setup with XAMPP and 1.0RC1.
I see the checkboxes for resize and thumbnail (checked) and no error messages, but neither works. I don’t see the thumbnail in the images list, and resize doesn’t work.
Anything I am doing incorrectly? Does anything more need to be installed for the hack to work?
Thanks


only change is constant

Offline

#65 2005-01-21 08:10:04

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: mdp_Automatic Thumbnail's

Helllo,

I’m using your hack and have to tell you its fantastic!! However, I’ve got a few problems. I’m using Textpattern 1.0rc1 and when I try to upload images above 300k I get this error…

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3460 bytes) in /DISK2/WWW2/creativesplash.info/knl/textpattern/include/txp_image.php on line 505

Any idea whats going on?

update:

Well apparently the images get listed (but are not resized and thumbnailed). The following are my settings..

define(‘RT_IMAGICK’,0)
define(‘RT_RESIZE’,640);
define(‘RT_TW’,150);
define(‘RT_TH’,150); //

Last edited by creativesplash (2005-01-21 08:36:42)


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#66 2005-02-18 03:34:06

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: mdp_Automatic Thumbnail's

Oh Oh Oh pick me…I have a question.

After fighting with 1and1 forever I finally got IM installed, but I am trying to figure out if there is a way to direct txp_image.php to the absolute path to my IM libraries. It is imposible to install in the root/htdocs of the actual server, however it is installed in the root of my 4000mb space. I installed <a href=“http://gallery.menalto.com”/>Gallery</a> and found a nice thread for getting IM installed and working for that… But now how do I tie it in with txp and your txp_image.php replacement?

Thanks!
Jamie

Offline

#67 2005-02-26 02:51:03

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: mdp_Automatic Thumbnail's

Thumbnails don’t work, since RC3. Image directory permissions problem.

I get a message saying I should change settings or /images to 777 which is what I have done. Image upload works fine when I revert to the default image.php include.

Anyone have any ideas?

Last edited by mrdale (2005-02-27 01:35:48)

Offline

#68 2005-03-05 13:30:10

Borisch
Archived Plugin Author
From: Sweden
Registered: 2004-05-30
Posts: 15
Website

Re: mdp_Automatic Thumbnail's

Sweet hack. Uploaded, using, happy.

Forgot: Thanks alot!

Last edited by Borisch (2005-03-05 13:34:19)


Instead of conquering the world, I’m collecting it in my attic.

Offline

#69 2005-03-17 09:48:37

Anton
Plugin Author
From: Alingsås, Sweden
Registered: 2004-11-16
Posts: 138
Website

Re: mdp_Automatic Thumbnail's

Have any of you tested using this with RC3 later than rev200? I mean, RC3 in late february wasn’t that rock steady ;)

Offline

#70 2005-05-11 11:16:26

jufemaiz
Archived Plugin Author
From: nth narrabeen, sydney, nsw, au
Registered: 2005-03-17
Posts: 91
Website

Re: mdp_Automatic Thumbnail's

Major issue:
for some reason, when installed this comes up with:
Warning: cannot write to image directory
/images.
Please change file permissions to 777.

It seems to be due to the fact that using $doc_root in the script isn’t getting the $doc_root on my server…

Possibly due to this? // 1.0 removed $doc_root variable from config, but we’ll // leave it here for a bit until plugins catch up $txpcfg[‘doc_root’] = $_SERVER[‘DOCUMENT_ROOT’];


BE + MEngSc = engineer with a side dish of frustrated designer/developer with a penchant for photography outside

Offline

#71 2005-05-11 11:28:14

jufemaiz
Archived Plugin Author
From: nth narrabeen, sydney, nsw, au
Registered: 2005-03-17
Posts: 91
Website

Re: mdp_Automatic Thumbnail's

well. I got the hack completed (hope you guys don’t mind).

Was a simple operation of replacing:
$doc_root.$path_from_root.$img_dir.’/’

With:
IMPATH

defined as: define(“IMPATH”,$path_to_site.’/’.$img_dir.’/’);

as per the original…


BE + MEngSc = engineer with a side dish of frustrated designer/developer with a penchant for photography outside

Offline

Board footer

Powered by FluxBB