Is there any planned support for image module and 4.6? I ask because I find no reference to it, which is perhaps essential for drupal. The present version (4.5 cv) is one of the few to break drupal.

Comments

bjornarneson’s picture

Image module is being overhauled for 4.6

See http://lists.drupal.org/archives/drupal-devel/2005-02/msg00537.html

--
Bjorn | choirgeek.com

chueewowee’s picture

Thanks, I didn't find it on a search.

-----------------------------------------------------
"It's never too late to have a happy childhood."

jvincher’s picture

Folks, I am baffled. Image module is installed, all seems fine but thumbsnails etc do not show.

I am assuming it has to do with this error:

The selected image handling toolkit 'gd2' can not correctly process 'image_gd2_settings'.

I activated GD graphics extension on my shared host but I can't seem to get around this error. Any ideas?

I'm on 4.6RC , by the way

mogrify’s picture

...but I sorta fixed it. I'm new to drupal and don't entirely grok what's happening with the image API. Anyway that function is called by a line in includes/image.inc, roughly line 63:

function image_toolkit_invoke($method, $params = array()) {
  if ($toolkit = image_get_toolkit()) {
    $function = 'image_'. $toolkit .'_'. $method; // <= This one!
    if (function_exists($function)) {
      return call_user_func_array($function, $params);
    }

So if you look at image_get_toolkit(), it returns 'gd2'...

    $toolkit = variable_get('image_toolkit', 'gd2');

But the resize function is actually called image_gd_resize(). So I changed the line to:

    $toolkit = variable_get('image_toolkit', 'gd');

And now it works. I don't know if this is right or good, but it gets the job done.

By the way, anyone know if imagemagick will eventually be available as a toolkit? I just can't stand gd images. Is there someplace to set this that I'm missing? Thanks...

jvincher’s picture

to see i'm not the only one but this did not solve the issue for me.

The error seems to be gone but the images still do not show as thumbnails or otherwise.

Are you using 4.6RC?

rangermeier’s picture

i renamed the function in includes/image.inc from "image_gd_resize" to "image_gd2_resize"

this works for me but i'm not too sure if it's the proper way to fix this...

bitman’s picture

It seems that some of the the image module's low-level functionality is being moved-into/recreated-in the Drupal core. So some functions exist both in Drupal 4.6 and in the image module for the moment. Eventually I expect that the image module will be updated to work with the new image api.

Usually it takes time for modules to work with a new release candidate. If you look at:

http://drupal.org/project/releases/4.6

You can see that only 6 modules are definitely ready for 4.6 at this time.

chueewowee’s picture

Thanks, I looked at the 4.6 releases, and searched forums too. I needed this assurance because I don't like it in the dark. I'll take a look at the thread now.

-----------------------------------------------------
"It's never too late to have a happy childhood."

sepeck’s picture

test away
cvs.drupal.org/viewcvs/drupal/contributions/sandbox/walkah/image

-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

chueewowee’s picture

Yeah Sepeck, it seems to work fine. I'm pleased. So nothing to report!

-----------------------------------------------------
"It's never too late to have a happy childhood."

walkah’s picture

i've about got enough "happy" reports like this to make "the big swtich".

--
James Walker :: http://walkah.net/

ixis.dylan’s picture

It's still working great for me. Thanks!

The only issue I have with it is that personal image galleries don't seem to be supported yet. Is this planned for the release, or will it (and regular galleries) be moved to a seperate module?

demolicious | leafish

ssh-1’s picture

Hi,

I've tried uploading files, yet it gives me an error:

File copy failed: no directory configured, or it could not be accessed.

The directory specified in the admin module exists (files/misc/images). I've tried deleting the image table from the database (mysql) and removing the variables. Is there a mysql script for getting things setup correctly from scratch for this module yet? It's a test installation so messing and breaking isn't a problem.

I should be able to provide some useful feedback.

sepeck’s picture

Which image module are you discussing? The new one in walkah's sandbox or the one for 4.5? Walkah's doesn't have mysql tables.

-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

ssh-1’s picture

I'm discussing the sandbox one linked above.

I didn't realise that it doesn't use tables. It looks like it's purely a permissions problem then. I'll try it out later so. Not sure why it would be, files and directories are chowned www-data and 700

ssh-1’s picture

Okay,

Looking a bit better now but still not perfect :-\

I had to change the image path from misc/images to just images.

Suddenly, it starts putting images in files/images without problem. It's identical in permissions to files/misc/images.

Is there a todo list for this module? I think robust image support is one of the major things missing from the core of drupal.

sepeck’s picture

Image support was added to Drupal core with 4.6. This image module utilizes these hooks to operate. The default file location for images on my 4.6rc is files/images. You might want to check your file permissions on the files directory.

As to the 'to do' list *cough* :)
http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/walkah/image/...

-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

chueewowee’s picture

Check your permissions are 777.I had to change mine from 750

-----------------------------------------------------
"It's never too late to have a happy childhood."

jeppehb’s picture

I've been testing walkah's image.module for some time now on the latest CVS snapshot.
It seems the 4.5.2 image.module function called fast upload has dissapeared.
Is there another way of adding an entire directory of uploaded image files to the system?
I've also tested the new album.module, it also lacks the feature of mass-uploading images.

Thought? Ideas? Future plans?

joe@www.joepilot.net’s picture

I'm messing with the new image module for 4.6 and I'm getting the error: "The selected image handling toolkit 'gd2' can not correctly process 'image_gd2_settings'."

Mind that the GD2 library worked just find with the old image module.

Steve Dondley’s picture

I'm getting this error in the watchdog when I visit the admin/settings page. My version of PHP was compiled with the --with-gd option. I have not installed the image module. I just have the core modules installed.

joe@www.joepilot.net’s picture

I should have noticed this before, as it is covered earlier in this post. Change the line in includes/image.inc as mentioned here. Sorry about the stupid question, this fixed the probolem, although another just popped up.

I have uploaded a picture and it doesn't give me an option of which gallery I want to place the picture in, so the picture in fact doesnt' even show up. Secondly, I get the error SELECT n.*, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid WHERE n.nid = '' where the error is comparing an interger (n.nid) to a string (''). I tracked down the code in user.module where this occurs but it doesn't help.

Lastly, when going to /image, the pictures aren't in any of the galleries. In fact, when uploading the pictures, they do not have an option of where to put them. If you have any information on this, I would greatly appreciate it.

Also, in case the responder really understands the new (4.6) forum module, please explain how to insert a topic so that it shows up on the forum. All the topics I insert ont' have a forum option and doesn't even show up on the /forum page.

Help is certainly welcome!

phatPhrog’s picture

I made the change mogrify - March 25, 2005 - 13:17 referred to, but still get log entries stating

GD2

The selected image handling toolkit 'gd2' can not correctly process 'image_gd2_settings'

GD

The selected image handling toolkit 'gd' can not correctly process 'image_gd_settings'

We have gd-2.0.15-1 installed on a FC1/Plesk 7.x server with Apache/Linux 2.0.51, php 4.3.11, mysql 4.0.24.x

Of course this is premature since we are still on the RC, but hope it will be resolved in the final release.

joshricker’s picture

I followed the instructions to install the image.module into the modules folder but the image module doesn't show up when i login as administrator.

Any ideas? Thanks!

Josh