Image manager issues

Admiror Gallery is free extension for Joomla! based websites. Admiror Gallery is all in one, a simple and instant solution for rendering image gallery from folder with images, but very flexible and adaptable.
Post Reply
Message
Author
Mxtremeg
Posts: 4
Joined: Tue Feb 19, 2013 9:04 pm

Image manager issues

#1 Post by Mxtremeg »

Hi all,

First off this is a great component.

My problem is with the image manager, I am getting the blank white screen when I click on the folder with my images to edit.

I read around the forums and saw that file size being to big and images names having spaces and such may cause the white blank screen.

I have since renamed all the images and brought each file size down to about 200-400 kb a piece or less.

I am still getting the blank white screen.

The problematic folders all have a lot of images 100+ and it will continue to grow as the website I have employed the use of the component is a portfolio type website.

I am however able to make the folder load with the thumbnail images if I remove half of the pictures from each folder and place them into another.
This would be a decent fix except for the fact that I need all images in one folder/ one category.

How can I fix this ?

All I need to do is be able to sort my pictures in the image manager.

I was using Rokgallery before and it was a huge pain and was extremely problematic. Admiror is my last hope for deal with large amounts of images.

Admiror Gallery 5 - Fundraising Campaign

Mxtremeg
Posts: 4
Joined: Tue Feb 19, 2013 9:04 pm

Re: Image manager issues

#2 Post by Mxtremeg »

Bump,

please help

Mxtremeg
Posts: 4
Joined: Tue Feb 19, 2013 9:04 pm

Re: Image manager issues

#3 Post by Mxtremeg »

Bump,

please help

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: Image manager issues

#4 Post by Vasiljevski »

Sorry, I must have overlooked your post. Sometimes I check for new post from work, and get distracted.

What are the dimensions of the images you have?

Do you have access to PHP error log? Can you check if there is any error when blank page appears?

If you have images with large resolution (1920x1080 and more) it might take your server a long time to create thumbs for all of them, and PHP script execution time, usually 30 seconds on shared hostings,expires and blank page is displayed.

I managed to reproduce you problem at my side. And can confirm that script execution time is the problem with a lot of images.

So there are two solutions:
You can add :

set_time_limit(0);
in : administrator\components\com_admirorgallery\views\imagemanager\view.html.php

Code: Select all

    function display($tpl = null)
    {
	  JToolBarHelper::title( JText::_( 'COM_ADMIRORGALLERY_IMAGE_MANAGER' ), 'imagemanager' );
          set_time_limit(0);
	  parent::display($tpl);
    }
This may be a problem on shared hostings, they don't usually allow changing this value from PHP. But it's worth a shot.

The other solution is to comment out creating of thumbnails and just let images to load as they are and size them down to the thumb size.
This is the code that needs to be changed: administrator\components\com_admirorgallery\views\imagemanager\scripts\imgManager-render-folder.php

Code: Select all

        agHelper::ag_createThumb(JPATH_SITE . $ag_itemURL . $value, $thumbsFolderPhysicalPath . DIRECTORY_SEPARATOR . $value, 145, 80, "none");

        $AG_thumb_checked = "";
        if ($ag_XML_thumb == $value) {
            $AG_thumb_checked = " CHECKED";
        }

        $ag_preview_content.='
     <div class="AG_border_color AG_border_width AG_item_wrapper">
	<a href="' . $ag_itemURL . $value . '" class="AG_fileLink AG_item_link" title="' . $value . '">
	      <div style="display:block; text-align:center;" class="AG_item_img_wrapper">
	      <img src="' . JURI::root() . 'administrator/components/com_admirorgallery/assets/thumbs/' . $value . '" class="ag_imgThumb" />
	      </div>
	</a>
After changes it should look like:

Code: Select all

        //agHelper::ag_createThumb(JPATH_SITE . $ag_itemURL . $value, $thumbsFolderPhysicalPath . DIRECTORY_SEPARATOR . $value, 145, 80, "none");

        $AG_thumb_checked = "";
        if ($ag_XML_thumb == $value) {
            $AG_thumb_checked = " CHECKED";
        }

        $ag_preview_content.='
     <div class="AG_border_color AG_border_width AG_item_wrapper">
	<a href="' . $ag_itemURL . $value . '" class="AG_fileLink AG_item_link" title="' . $value . '">
	      <div style="display:block; text-align:center;" class="AG_item_img_wrapper">
	      <img height="80" width="145" src="' . JURI::root() . $ag_itemURL . $value . '" class="ag_imgThumb" />
	      </div>
	</a>
It will take longer to load the images, but they will load :)
Help Admiror Gallery become even better,
give us a review on JED

Mxtremeg
Posts: 4
Joined: Tue Feb 19, 2013 9:04 pm

Re: Image manager issues

#5 Post by Mxtremeg »

Hi,

Thanks a lot for the reply

Your fixes worked, however I am now getting this error

http://prntscr.com/vdx3d

so I cannot save after I re order the files

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: Image manager issues

#6 Post by Vasiljevski »

I don't think this has anything to do with Admiror Gallery because Admiror Gallery doesn't use mySql for storing data.

We use XML files for storing data.

It looks to me like some module is making this error.
Help Admiror Gallery become even better,
give us a review on JED

Post Reply