Hey Guys,

I've just finished version 1.0 of Gallerix for Drupal 5. You can read a lot more about it on the project page, http://drupal.org/project/gallerix , as well as my website, http://the.failbo.at/gallerix . It's taken 3 months to get this module out the door, but it's been thoroughly tested and should work out of the box for most users. Please give it a try, and let me know how it goes. I'm already working on version 1.1, so post any features you want to see added.

Thanks,

Silvio

PS. For some reason, the official release won't show, but you can download it here http://drupal.org/node/172017/release .

Comments

misty3’s picture

subscribing.

Muslim guy’s picture

I am working on Gallery2

Is there node integration with Drupal or at least picture description for every photo?

And for custom user profile (userprofile.tpl.php) and Nodeprofile:

- How do we display either in a side block, or in a custom PHP snippet, to display/embedd the user's pictures/albums

Gallery2 for 5.3 can embed user's albums in userprofile.tpl.php

And is there Latest / Random Pics blocks that we can display in Drupal? You said Views is optional, so I figured for now I got to mess with Views to have these blocks ?

Thanks :)

silviogutierrez’s picture

The majority of the features you are asking for are definitely planned for 1.1 - 1.2 , although picture description for every photo already exists. A block is also on it's way for 1.1, page snippets will have to be written manually. You can also go to example.com/gallery/some_user_id to browse albums by user.

Let me know how things go,

Silvio

http://the.failbo.at

Muslim guy’s picture

Fatal error: Call to undefined function: exif_read_data() in /home/muflihun/domains/muflihun.com/public_html/modules/gallerix/gallerix.module on line 891

= Disable EXIF

Message Error in function '_gallery_init()' (gallery_base.inc:80):

* Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
(pointing to http://muflihun.com/admin/settings/gallery/install )

You can see the first album, its blank

http://muflihun.com/node/2#undefined

No thumbnails,

But you can see the pics in the user profile, embedding the recent `album' nodes

http://muflihun.com/user/1

I have disabled Gallery2 module, but I think I have to delete altogether the module folder, then I let you know if it still has problem embedding

*The /gallery link will interfere with Gallery2 integration links

*So the first thing to do IMHO is to differentiate links and hooks /gallery from Gallery2

Muslim guy’s picture

Fatal error: Call to undefined function: exif_read_data() in /home/muflihun/domains/muflihun.com/public_html/modules/gallerix/gallerix.module on line 891

= Disable EXIF

Message Error in function '_gallery_init()' (gallery_base.inc:80):

* Unable to initialize embedded Gallery. You need to configure your embedded Gallery.
(pointing to http://muflihun.com/admin/settings/gallery/install )

You can see the first album, its blank

http://muflihun.com/node/2#undefined

No thumbnails,

But you can see the pics in the user profile, embedding the recent `album' nodes

http://muflihun.com/user/1

I have disabled Gallery2 module, but I think I have to delete altogether the module folder, then I let you know if it still has problem embedding

*The /gallery link will interfere with Gallery2 integration links

*So the first thing to do IMHO is to differentiate links and hooks /gallery from Gallery2

-----

----------------------
php error

gallery2/embed.php

Location http://muflihun.com/gallery2/embed.php?getEmbedPath=1
Referrer
Message gallery2/embed.php
Severity warning

--------------------------------------

Is that DELETE checkbox? Its not labeled anything. My mother would have ticked it and voila! she lose her uploaded pics :)

-------------------------------------

page not found

Location http://muflihun.com/node/undefined
Referrer http://muflihun.com/node/2
Message node/undefined
Severity warning

---------------------------------------

The node view (teaser) can see the pic, but when i read the full node, its blank

Mozilla Firefox page source:



<script type="text/javascript">Drupal.extend({ settings: { "gallerix": { "default": "4", "get": "/node/2/picture/", "links_width": null, "widgets_enabled": false } } });</script>



    <div class="content"><div id="gallerix">
<div id="gallerix-loader">
<div id="gallerix-display">
<img src="/modules/gallerix/images/blank.gif" alt="" title="Full Image"  id="gallerix-full" /></div>

</div>
<span id="gallerix-message"></span>

<div id="gallerix-picture-links">
<a href="/%2523" id="gallerix-thumbnail-link-0" class="gallerix-picture-link gallerix-thumbnail-link "><img src="/modules/gallerix/images/blank.gif" alt="" title=""  class="gallerix-thumbnail " /></a>
<a href="/%2523" id="gallerix-thumbnail-link-1" class="gallerix-picture-link gallerix-thumbnail-link "><img src="/modules/gallerix/images/blank.gif" alt="" title=""  class="gallerix-thumbnail " /></a>
<a href="/%2523" id="gallerix-thumbnail-link-2" class="gallerix-picture-link gallerix-thumbnail-link current"><img src="/modules/gallerix/images/blank.gif" alt="" title=""  class="gallerix-thumbnail current" /></a>
<a href="/%2523" id="gallerix-thumbnail-link-3" class="gallerix-picture-link gallerix-thumbnail-link "><img src="/modules/gallerix/images/blank.gif" alt="" title=""  class="gallerix-thumbnail " /></a>
<a href="/%2523" id="gallerix-thumbnail-link-4" class="gallerix-picture-link gallerix-thumbnail-link "><img src="/modules/gallerix/images/blank.gif" alt="" title=""  class="gallerix-thumbnail " /></a>
</div>


silviogutierrez’s picture

Muslim guy,

I have corrected the delete checkbox , since it is pretty confusing as to what it does. Gallerix now clearly says that checking the boxes will delete the pictures.

In terms of clashing with Gallery2, at this point I don't plan on differentiating the links between the Gallery2 integration module, and Gallerix, since having one obsoletes (or will, once more features are added to Gallerix) the other.

I don't understand why your thumbnails aren't working, maybe it was due to the system crashing when trying to read EXIF. I've had beta testers use it, and they had no problems with it. Could you create an album, load a few pictures into it, make it public, and give me the URL? I'll be happy to take a look.

Finally, it seems as if your php was not compiled with EXIF support (and possibly IPTC support). I've added a check to the settings page now that won't let you turn on EXIF or IPTC unless their respective calls exist.

Thanks for bringing these errors to my attention, I hope you keep using the module,

Silvio

http://the.failbo.at

Muslim guy’s picture

The Gallery2 is behaving weirdly, so i switched back to Gallerix :)

http://muflihun.com/node/2

You can see the 1st pic in TEASER, but not in the node full view

And i can embedd it just like any other node, as `album', same thing happens, viewable only in teaser

Error log

Type page not found

Message files/gallerix/albums/1/2/full/274c4332ce20c803a13e5b697703fe07b457d696.JPG
Severity warning

silviogutierrez’s picture

Hey Muslim guy,

I took a look at your site, and it doesn't seem like the Javascript files are getting included at all! Naturally, that's why it's not working. Can you try and see why the JS files are not included? Maybe it's something to do with your theme. After all, it's not just Gallerix's JS files, but all other Drupal Javascript that is missing. Once you get that working, the rest of the module should come together.

Good luck,

Silvio

http://the.failbo.at

Muslim guy’s picture

I remembered taking foliage theme's 4.7 style and templates for a quick work for custom user profile

Missing was

  <?php print $scripts ?>
silviogutierrez’s picture

Did that help at all?

Silvio

http://the.failbo.at

Muslim guy’s picture

I tried also on my localhost (Windows 98, Portable XAMPP) and its ok, just it takes quite some time to show up.

So maybe my webhosting server is slow, or else. I am patience enough because we really want a Facebook - like photo album, and Gallerix treats an Album as a node, so thats cooler than Facebook album, or Gallery2 :)

Suggestion:

Disable `right click' to save picture as - the idea is for others to view pics, but cannot save

On-the-fly `grant node access' for the user. Node access for now enlist roles, and a textbox to enter individual names. But the user has to submit first, then edit, and click `grant'.

silviogutierrez’s picture

Alright, at least it worked on the localhost. Gallerix is very processor intensive, so it may be slow on a Windows 98 machine.

As for your suggestions:
- Disabling right click: although protecting your pictures is an issue, disabling right click will annoy most users enough that they may not come back. Besides, they could still look at the source and save the picture, or print to screen. However, if you still wish to do so, a click google search will tell you what to add to the gallerix.js file to do that.

- Node access: Gallerix doesn't implement any kind of node access system. It leaves all of this up to dedicated modules, so what you're seeing must be node access menus from another module, not Gallerix.

Silvio

http://the.failbo.at

yoyek’s picture

Is it basing on nodes and taxonomy? I mean do picture == node and gallery == term?

Muslim guy’s picture

Yes its a Node. You create an `Album' first, then you click on `album contents' to upload images

Weird thing happens, maybe my browser, maybe my server, but i could not view the AJAX based thumbnails

You can see the working stuff at the developer's site

lemmy’s picture

Hi,
I think the problem some users are having with this is due to a bug, where images of dimensions smaller than the "full" size aren't copied to the "full" folder. This is because image_scale() only scales down, not up.
Here's a suggested fix:

In the function _gallerix_build_derivatives($nid, $size):

  if ($size == 'thumbnails') {
      //Ratios code from ImageCache.
      $image_size = getimagesize($picture['path']);
      $ratio = $image_size[0]/$image_size[1];
      $new_ratio = $width/$height;
      $scaleWidth = $ratio > $new_ratio ? 9999999 : $width;
      $scaleHeight = $ratio < $new_ratio ? 9999999 : $height;
      
    image_scale($picture['path'], $output_file, $scaleWidth, $scaleHeight);
    image_crop($output_file, $output_file,0,0, $width, $height);     
  }  
  else {
  	$info = image_get_info($picture['path']);
  	if ($info['width']>$width || $info['height']>$height){
    	image_scale($picture['path'], $output_file, $width, $height);
  	} else {
  		file_copy(&$picture['path'], $output_file, $replace = FILE_EXISTS_REPLACE);
  	}
  
    $info = image_get_info($output_file);
    db_query("UPDATE {gallerix_pictures} SET width = %d, height = %d WHERE pid = %d", $info['width'], $info['height'], $picture['pid']);   
   
  }

Actually the thumbnail part should also be updated in case the uploaded image is smaller than the thumbnail size too...

silviogutierrez’s picture

Lemmy,

This bug has been addressed in version 1.1, which will be out soon.

Thanks,

Silvio

http://the.failbo.at

simpsomboy’s picture

I am testing, but albuns seems to have no pagination, I only can change the number of pictures shown per album
but it is not paged if there are more pictures than that number.
there is a currently way to solve this?
(I tried other templates too)

Att,

Alexandre

nsantec’s picture

Hi Silvio....

I have the following error when i activate the module in de administration section

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 816 bytes) in C:\wamp\root\drupal\includes\menu.inc on line 1192

silviogutierrez’s picture

You need to increase your max memory allocation for PHP.

Silvio

http://the.failbo.at

tuxrouge’s picture

will you make something to bring gallerix under drupal 6 ?

lsixt’s picture

OK, I just installed 1.4 and created two different albums using two different user accounts (testing)..

Set up the random pictures and latest pictures - Fine...

But when I login as either of those users, how do I get to edit my album???? The only way now is for me to click on one of my pictures and that will get me in, but I can't access my album (that I can see) any other way????

Thanks... good Stuff!!!

slapmedia’s picture

Is there a way to get Thumbnails to only show in teaser? Also, am I missing something that allows me to move picture order?

cfl_techy’s picture

image resizing , scaling down works well with all browser except ie ver8
the image is scaled down, but it is skewed, the scaling is not symmetric.

can somebody help me on this !!

eg:http://www.ce.ncsu.edu/srizkal/personal/album_work#125

try this link on ie and any other browser...look at the right side getting chopped off in ie

thanks in advance

UPDATE:: it just worked the next day.........wierd..... may be i did rebuilding several times and the size change didn't come up in single rebuild