[SOLVED] Horrible quality on thumbnails and resized images
apeacock
Joined: 2005-03-08
Posts: 14 |
![]() |
I'm using Gallery2 CVS and images resized with imagemagick have a horrible quality (I also had this problem with beta1, but I'm not sure if I was using netpbm or imagemagick). It looks like all my images have a quality of 0. I put galery into debugmode, and I think I found the offending command:Executing: ( "convert" "-quality" "" "-size" "150x150" "-geometry" There is a quality flag, but it isn't being passed anything. I tested this on another file manually and it does in fact reduce a jpeg to a 0 quality one, which, needless to say, looks bad. ---- |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
i've never heard of this before.. what quality setting is selected in Site Admin / Imagemagick ? |
|
apeacock
Joined: 2005-03-08
Posts: 14 |
![]() |
I can't find any settings for imagemagick, that was the first thing I looked for. The only place I see imagemagick mentioned is under toolkit priority, where I can just move them up and down, and under modules, where I can just activate/deactivate it (if I deactivate cetian modules they can't reactivate, but thats a question for another time...) |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
in Site Admin you should see Quote:
Graphics Toolkits on the left side if you have activated ffmpeg, imagemagick and netpbm modules. If there's no imagemagick link at the same time you get this "convert ..." message in debug mode, then something rather strange is going on. Go to site admin -> modules and check if the imagemagick module is activated. maybe deactivate/remove and activate it again. |
|
apeacock
Joined: 2005-03-08
Posts: 14 |
![]() |
Nope, I don't have those under graphics toolkits. In the side menu I have Quote:
Admin Options If I deactivate imagemagick, it probably won't reactivate (it wouldn't in beta 1). |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
I just have deactivated, uninstalled, installed and activated again the imagemagick G2 module. |
|
apeacock
Joined: 2005-03-08
Posts: 14 |
![]() |
The deactivation was successful, install errored. Also, something seems pretty wrong - in my modules, I have a green thumb-up, and a number in version, but under "installed", I have no versions for anything except core. screenshot is available at http://www.thepeacock.net/misc/images/gallery.jpg Error: Error Detail - * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1204 (gallerystatus::error) System Information file_exists(/home/apeacock/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) (mysql): file_exists(/home/.underfoot/apeacock/thepeacock.net/gallery/modules/core/classes/helpers/../../../../modules/imagemagick/module.inc) (mysql): SHOW TABLES (mysql): SELECT g_name, g_major, g_minor FROM g2_1_Schema mysql error: [1062: Duplicate entry 'module-imagemagick-0-path' for key 1]
1062: Duplicate entry 'module-imagemagick-0-path' for key 1 adodb_mysql._execute(INSERT INTO g2_1_PluginParameterMap adodb_mysql.execute(INSERT mysqldatabasestorage.addmapentry(GalleryPluginParameterMap, gallerystorage.addmapentry(GalleryPluginParameterMap, realpath(/home/.underfoot/apeacock/thepeacock.net/gallery/modules/core/classes/../../..) |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
right, there are several things wrong in your installation. did you uninstall imagemagick after deactivating it? when you uninstall it, it deletes all entries in the database corresponding to imagemagick. then you should be able to install/activate it again. tell me, if you also see a number in the installed column when you accomplished this. what can you tell us about the "history" of this G2 install? did you have another G2 installed before? was it an upgrade? if not, did you empty g2data / db and delete all files before you installed this G2? |
|
apeacock
Joined: 2005-03-08
Posts: 14 |
![]() |
Uninstall it? I pressed deactivate, and then I get an install button. No button for uninstall. This is a clean install. I had beta1 installed, but I deleted the directory and the data dir and used a different DB for this install. Everything seemed to go fine... the only thing I'm thinking of is that I have a funky home directory setup on dreamhost - both /home/apeacock and /home/.underfoot/apeacock work, and I'm not sure what I put in for my home dir during install. g2data is also stored in /home/apeacock/g2data, while the gallery is in /home/apeacock/thepeacock.net/gallery. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
1) deactivate all toolkits (ffmpeg, im, netpbm, gd, also squarethumbs, thumbnail and uploadarchive which technically are toolkits) now you should be able to install/activate the toolkits again. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
if you don't see a uninstall link after deactivating a module and if you are database savvy enough, delete all entries in g2_1_PluginParameterMap corresponding to this module. |
|
apeacock
Joined: 2005-03-08
Posts: 14 |
![]() |
Mindless: I did that and it didn't work. I didn't uninstall, since after I deactivate I do not have a button or anything anywhere to uninstall, just a button to instal. |
|
apeacock
Joined: 2005-03-08
Posts: 14 |
![]() |
Valiant: I did that, and I finally have that option, with a value of 75 in the quality, and my image uploads finally work. Thank you. I seem to have this problem with all my modules though - they say they're installed, but they're not working, like the upload applet. Any idea what is wrong? |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
there must have been something seriously going wrong during the installation of your G2. do the same what you did for the imagemagickmodule for all other modules that are installed but have no version number in the installed column. then install/activate the modules again. |
|
apeacock
Joined: 2005-03-08
Posts: 14 |
![]() |
Thank you, what I ended up doing was deactivating all of them and clearing the whole table, then putting the modules I want back on. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
hopefully you didn't just delete ALL entries in the table, because some of them were for the core module, which cannot be installed manually in site admin. |
|