Resizing of images does not work after moving to second server.

grzegorzj

Joined: 2013-02-10
Posts: 7
Posted: Sun, 2013-02-10 20:25

Hi,
I moved gallery2 from version:

Wersja Gallery = 2.2.3 moduł główny 1.2.0.5
Wersja PHP = 5.2.0-10+lenny1 apache
Serwer WWW = Apache/1.3.34 Ben-SSL/1.55 (Debian) PHP/5.2.0-10+lenny1
Baza danych = mysqlt 5.0.51a-24-log, lock.system=flock
Narzędzia = Dcraw, Exif, Getid3, LinkItemToolkit, NetPBM, Thumbnail, Gd, ImageMagick, SquareThumb
Przyspieszenie = none, none
System operacyjny = Linux 2.6.20.1 #5 Fri Feb 23 19:08:12 CET 2007 i686
Temat standardowy = matrix
gettext = aktywny
Lokalizacja = pl_PL
Przeglądarka = Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1
Rzędów w tabeli GalleryAccessMap = 132
Rzędów w tabeli GalleryAccessSubscriberMap = 9671
Rzędów w tabeli GalleryUser = 4
Rzędów w tabeli GalleryItem = 9668
Rzędów w tabeli GalleryAlbumItem = 315
Rzędów w tabeli GalleryCacheMap = 0

to version:

Wersja galerii = 2.3.2 moduł główny 1.3.0.2
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
Wersja PHP = 5.3.8 apache2handler
Serwer WWW = Apache/2.2.21 (Linux/SUSE)
Baza danych = mysqli 5.5.28-log, lock.system=flock
Narzędzia = Exif, Getid3, LinkItemToolkit, Thumbnail, SquareThumb, ImageMagick, NetPBM, Gd
Przyspieszenie = none, none
System operacyjny = Linux linux-bsnq.site 3.1.10-1.16-desktop #1 SMP PREEMPT Wed Jun 27 05:21:40 UTC 2012 (d016078) i686
Temat standardowy = matrix
gettext = aktywny
Lokalizacja = pl_PL
Przeglądarka = Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0
Rzędów w tabeli GalleryAccessMap = 132
Rzędów w tabeli GalleryAccessSubscriberMap = 9671
Rzędów w tabeli GalleryUser = 4
Rzędów w tabeli GalleryItem = 9668
Rzędów w tabeli GalleryAlbumItem = 315
Rzędów w tabeli GalleryCacheMap = 0

They are on different locations and seem to work fine except:
1. Some square representations of single photos are broken, but that can be fixed by cutting them
once more. It's about 5% of them that is broken. I tried to run rebuilt of them - did not helped.
After clearing the cache of course...
Why that could happen??

2. More serious bug is that resizing of photos does not work at all. On source album - still works
with previous version - photos have 3 sizes:
1024 x something ( which is the original size ),
800 x something and
640 x something
last two on destination album show broken images.
GD, IM, NetPbm works ok - all tests returns OK ( except jhead in NetPBM - returns "File not found" )

I moved a database data 2 times - nothing helped. Also moved files ( photos ) carefully.
Upgrade was done with no problems. Resizing didn't work also before te upgrade. I hoped
upgrade can help, but it didn't help....

What can be the reason of this troubles? Especially the second one....

Grzegorz.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-02-10 20:51
Quote:
Narzędzia = Exif, Getid3, LinkItemToolkit, Thumbnail, SquareThumb, ImageMagick, NetPBM, Gd

GetId3 is just wasting memory it has no purpose - uninstall it.

You don't need 3 image toolkits, if imagemagick passes its test use it and uninstall GD and netpbm

Square thumb sometimes conflicts with GD, so if you are using GD it may not work w/ square thumb.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
grzegorzj

Joined: 2013-02-10
Posts: 7
Posted: Wed, 2013-02-13 19:54

I switched off all two pairs leaving one working: GD alone, NetPBM alone and IM alone.
There is no difference in image behavior - only the biggest ( original ) size works.
Smaller sizes are all still broken....

Grzegorz.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-02-13 22:10

any events in the event log?
Gallery Admin -> Events

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
grzegorzj

Joined: 2013-02-10
Posts: 7
Posted: Sat, 2013-02-16 16:28
suprsidr wrote:
any events in the event log?
Gallery Admin -> Events

Empty.

Grzegorz.

 
grzegorzj

Joined: 2013-02-10
Posts: 7
Posted: Sat, 2013-02-16 16:45

With NetPBM active as only one image converter I had an error during cutting the
square representatives:

Data sob, 16 lut 2013, 16:33:31
Typ Image Error
Lokalizacja http://localserver.pl/FotoGaleria/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemEdit&g2_editPlugin=ItemEditPhotoThumbnail&g2_itemId=11217
Id użytkownika 6
Klient 192.168.1.66
Podsumowanie Unable to build image
Odnośnik http://localserver.pl/FotoGaleria/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemEdit&g2_itemId=11217&g2_editPlugin=
Właściwości

Error (ERROR_TOOLKIT_FAILURE)in modules/netpbm/classes/NetPbmToolkit.class at line 591 (GalleryCoreApi::error)
in modules/netpbm/classes/NetPbmToolkit.class at line 431 (NetPbmToolkit::_transformImage)
in modules/core/classes/GalleryDerivative.class at line 452 (NetPbmToolkit::performOperation)
in modules/core/classes/GalleryDerivative.class at line 274 (GalleryDerivative::_rebuildCache)
in modules/core/classes/GalleryDerivativeImage.class at line 153 (GalleryDerivative::rebuildCache)
in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 844 (GalleryDerivativeImage::rebuildCache)
in modules/core/classes/GalleryCoreApi.class at line 997 (GalleryDerivativeHelper_advanced::rebuildCache)
in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 50 (GalleryCoreApi::rebuildDerivativeCache)
in modules/core/classes/GalleryCoreApi.class at line 984 (GalleryDerivativeHelper_simple::rebuildCacheIfNotCurrent)
in modules/core/ItemEdit.inc at line 232 (GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
in modules/core/ItemAdmin.inc at line 140 (ItemEditView::loadTemplate)
in modules/core/classes/GalleryView.class at line 293 (ItemAdminView::loadTemplate)
in main.php at line 465 (GalleryView::doLoadTemplate)
in main.php at line 104
in main.php at line 88

Request variables: Array
(
[view] => core.ItemAdmin
[subView] => core.ItemEdit
[editPlugin] => ItemEditPhotoThumbnail
[itemId] => 11217
)

After change to IM cuting process is OK.

Grzegorz.

btw:
re-sized images ( downsized ) are still broken.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2013-02-16 17:10

try rebuilding resizes in one small album using IM
Edit Album -> Album Tab -> Apply settings to existing items -> Apply album setting to resized images -> Build resizes too

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
grzegorzj

Joined: 2013-02-10
Posts: 7
Posted: Sun, 2013-02-17 15:46

It does not work with all the album. Even small one.
But....
It works with the only one photo.
I edit the photo -> Modify the photo ( it's in polish so I'm translating - this is where you can rotate photo ) ->
Rescale -> I insert the 1024 x 1024 value as it's the max size of my photo -> Then I press restore the original ( from
the bottom of page )
From this moment this photo is ok. It shows the default size 800 x 800 ( 800 x 6xx ) and the rest of
sizes can be changed from the pull-down menu.

Both the IM and GD works fine in this way.

NetPBM spoils the sizes - makes 92x92, 92x92, 1024 x 1024... ( available from pull down size menu )

I rebuild in this way 5 photos - but it's not good idea, as I've 14000 photos.....

Grzegorz.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-02-17 15:56

Sounds like a resource issue. Likely you are running into some limits set by your host.
Can you post a link to your phpinfo?
FAQ: How do I create a phpinfo page?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
grzegorzj

Joined: 2013-02-10
Posts: 7
Posted: Sat, 2013-03-02 15:44

I enclose. ( faq not needed.. ;-) )

grzegorzj.

 
grzegorzj

Joined: 2013-02-10
Posts: 7
Posted: Sat, 2013-04-13 15:26

Could we get back to this subject, please....

grzegorzj.