Thumb_Rotate plugin for cpg1.5.x - Page 3 Thumb_Rotate plugin for cpg1.5.x - Page 3
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Thumb_Rotate plugin for cpg1.5.x

Started by Timos-Welt, January 07, 2009, 12:48:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Timos-Welt

Quote from: Joachim Müller on May 07, 2009, 12:44:05 PM
that's why I toyed with the idea to completely rely on the config option for the background color and create jpg files in the first place, as an alternative.

JPG files will not work for themes with a thumb background that is not a solid color. It could be an option, but should not be the usual way the plugin works.

Joachim Müller

I agree, PNG is the file format of choice, only with a fallback option for jpg.
However, the idea to make the function thumb_rotate_image_create return the dimensions is not a bright idea as long as we don't store the dimensions somewhere. We'd have to keep that in the database. I'm not sure though if it wouldn't be wiser to just use getimagesize each time (on the fly).

@Hein: afaik there should be a warning when you install if you don't have the minimum requirements. Didn't you see a warning when you installed the plugin?

Timos-Welt

Hi Joachim,

getimagesize() should be much slower than storing width and height into the database - we have to query it anyways for each thumb.

I agree with Hein - I really like this plugin, too. Especially because it is something that is currently not available for any other web gallery product that doesn't use flash; it makes Coppermine even more unique. Joachim's work regarding the config screen and the technical realization is extremely well done (compared to mine).

More feature ideas for this plugin:

  • possibility to rotate all thumbs to a fixed angle instead of a random one - as well a nice effect, especially with certain themes
  • use a graphical border instead of a solid color (example)

Hein Traag

@Joachim. No there is no warning if this function is not present. There are only messages saying your apache and php version are ok.

No in-depth check so to speak.

Hein Traag

#44
Reinstalled cpg to the latest build and reinstalled the 1.2 version. It now works except for the background which remain black even when you choose white. I'll play around some more to see if i can make that work.

The rotated thumbs i get do not look like the image in the starting post.

Joachim Müller

Quote from: Hein Traag on May 11, 2009, 12:47:49 PM
It now works except for the background which remain black even when you choose white.
Happens for me as well. Reason is the imagerotate surrogate that doesn't work as expected.


Timos-Welt

I just checked out the latest SVN version (2.2) and installed it, and it's really awesome. Joachim: I don't think there's anything left from my initial code - if you like you can remove my name from the files completely. All the kudos belong to you!

Hein Traag

Original author always gets mentioned Timos. Without your effort this plugin would not exist.

But i also downloaded 2.2 and it installs without error, even displays a nice warning about the "imagerotate" function. But when i click the batch-fill cache it links to batch-fill instead of batch-fill.php. And when i click on Home it displays a blank page. Is this something anyone can verify?

Joachim Müller

I can confirm your observation on one of my testbeds. Seems like I'm causing too much memory consumption. I'll investigate and keep you updated.

Timos-Welt

Any news about the current state of this plugin? AFAIK the workaround for missing GD functionality doesn't seem to work. Rounded borders look a bit ugly to me. I found a nice GPL product that could be really useful together with the plugin and would solve the graphic lib problems:

http://phpthumb.sourceforge.net/

Joachim Müller