Dear Simon,

I`a one of the comaintainers of the node_gallery module. We are searching for a bulk upload posibility and I found your module. I wrote a module for the node_gallery that uses part of your code and your postlet for bulk upload. I would like to know if we can use the module I wrote for the node_gallery.module, or if we can join forces to write one module that integrates with image.module and node_gallery.module.

I would provide the code for the new module integrating both modules.

You may check a thread of the node gallery to see our discussion http://drupal.org/node/689490

Thanks

Dirk

PS the module is attached as zip for you to check.

CommentFileSizeAuthor
node_gallery_imagex.zip45.73 KBdesignwork

Comments

sdrycroft’s picture

Hi Dirk. This all sounds great. Given that the code I've released is GPL (as is Postlet), I actually can't say no to your request. I personally would prefer a single combined module (i.e. join forces) for this. I'll have a look at your code ASAP (a little bogged down with work at the mo' I'm afraid though), and will get back to you.

Simon

designwork’s picture

Hi Simon,

I will wait........

markpenny’s picture

Hi, guys. Thanks for the module and fork.

I'm using Dirk's fork with Node Gallery and am having a problem. It seems to strip a forward slash from the upload path.

My upload path in Node Gallery is sites/default/files/u%uid/images. It works great with Imagex disabled, but once Imagex is enabled, files go to sites/default/files/u%uidimages.

I've tried a double slash and a trailing slash, but something in Imagex just doesn't like slashes after files/ and takes them all out. Powerful stuff, but not what I'm looking for. Any ideas?

designwork’s picture

Hi mark,

install the transliteration module please.

Dirk

markpenny’s picture

Fantastic. Now it's working as hoped. Thanks a million.

markpenny’s picture

Dirk,

I have a couple of problems when uploading with the fork.

1. Not all the images get thumbnails.
2. The carousel (AD Slideviewer) sometimes gets jammed: two rows of images, no motion and, occasionally, links that don't open images in the viewer.

Are these fork issues or Node Gallery issues?

designwork’s picture

Hi Mark,

1. Not all images get thumbnails, maybe an imagechache problem, or memory problem from the server!
2. What is the carousel (AD Slideviewer)? This has something to do with node_gallery_display?

Please describe a bit better the problems...

Dirk

markpenny’s picture

Sorry, Dirk. It's called AD Gallery. Yes, it's one of the optional viewers in Node Gallery. The carousel is the strip of thumbnails below the viewer. The images slide left and right when you mouseover the arrows to left and right of the strip.

It's quite possible that I am loading too many images for the server to handle at once. I'll try a smaller number next time. Just let me report that the drag-and-drop upload doesn't always end with the manage images link. Sometimes it stalls on the upload progress strip.

markpenny’s picture

I've just uploaded seven images using drag-and-drop. Three of them don't have thumbnails under Sort Images. Only one of them showed a thumbnail in the Finished display at the end of the upload.

markpenny’s picture

Uploaded three. One didn't get a thumbnail.

markpenny’s picture

Uploaded 66. 37 without thumbnails under Finished. 25 without thumbnails under Sort Images.

3:7, 1:3, 25:66... 198:462, 154:462, 175:462. No consistent ratio of failed thumbnails to uploaded images. Not that there would be, but I thought I'd check.

markpenny’s picture

Uploaded 10. 5 without thumbnails under Finished. 1 without a thumbnail under Sort Images.

Deleted and re-uploaded same 10. No Finished display. Only 7 images uploaded, 1 without thumbnail (same one).

These warnings for the three that didn't upload:

# The selected file  could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
# warning: stat() [function.stat]: stat failed for /chroot/tmp/DSC00001.JPG in /home/targetei/public_html/site/modules/node_gallery_imagex/node_gallery_imagex.module on line 242.

The files exist on my hard drive.

H3x’s picture

The postlet applet is really great. However, I'm having much difficulty getting the maxpixels parameter to work. I've set it to 270000 (600*450) and I don't get an "maxpixels is not a number" error like I did when setting maxpixels = "600x450", but it seems like postlet is simply ignoring the resizing altogether.

Any help would be appreciated. If this function works then Node Gallery would be a simply elegant solution to my gallery problems.

H3x’s picture

Also, when setting maxpixels param, postlet stalls after uploading +- 2 files (UNresized). I read about something similar on SourceForge, but the problem still remains unsolved... any help would be greatly appreciated.

H3x’s picture

The resizing problem seems to be Java related. Here's part of the console output:
Exception in thread "Thread-15" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.(Unknown Source)
at java.awt.image.ComponentSampleModel.createDataBuffer(Unknown Source)
at java.awt.image.Raster.createWritableRaster(Unknown Source)
at javax.imageio.ImageTypeSpecifier.createBufferedImage(Unknown Source)
at javax.imageio.ImageReader.getDestination(Unknown Source)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(Unknown Source)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source)
at javax.imageio.ImageIO.read(Unknown Source)
at javax.imageio.ImageIO.read(Unknown Source)
at UploadThread.setInputStream(UploadThread.java:329)
at UploadThread.uploadFile(UploadThread.java:131)
at UploadThread.upload(UploadThread.java:94)
at UploadThread.run(UploadThread.java:71)

Anyone know how to increase the memory available to Java?

H3x’s picture

Ok, I think I have successfully increased the heap size, also, setting a lower maxthread number, also seems to help:

<param name = "java_arguments"  value="-Xmx128m">
<param name = "maxthreads" value = "3" />

However, even with maxpixels set:

<param name = "maxpixels" value = "307200" />

Only some of the images are getting resized! Does anyone have any clue as to how to solve this? It's driving me crazy!

greggles’s picture

Status: Active » Needs review

I've created a similar patch to provide integration for imagefield #329339: Imagefield support in imagex.

As I built it I thought about making it a more pluggable system so that other modules could use it - I guess that if someone wanted to add a third module (like Node Gallery) then it would make a lot of sense to make it more hookable. Something like:

  1. Core imagex module that has the applet and some settings
  2. One sub-module for Image support
  3. One sub-module for Imagefield support with 1 image per node
  4. One sub-module for Imagefield support with multiple images per node
  5. One sub-module for Node gallery support