random image mangling random image mangling
 

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

random image mangling

Started by pointer2null, October 13, 2015, 08:53:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pointer2null

Hi all,

I've got an occasional problem with the image resizing - it doesn't happen on all images, just a few now and then.

Example attached,

I'm running 1.5.38 with image resizing using GD 2.x

Any suggestions (or other logs files needed to shed light on this)?

Αndré

Please post a link to your gallery and a link to one or more affected images.

pointer2null

Hi,

It's not a commercial server - it's my own server on a domestic connection so limited bandwidth.

At the moment that is the only image, although I have had this several times before. I've tried deleting the image, and then re-ading it, but get the same issue. When I look in the coppermine directory, the image there seems ok. So this seems to be a display issue? (Happens on all browsers)

I've attached the coppermine versions (original is 8m so too large)

phill104

Without seeing it for ourselves it really is impossible to diagnose. It could be one of many things including a faulty server.
It is a mistake to think you can solve any major problems just with potatoes.

pointer2null

See what exactly? The image attached to the first post if a screen grab of the web page. The image attached to the second post is taken from the coppermine data directory on the server. I can't put the server address on a public board as it will be swamped.

Here are two more screen grabs.

As I said, if you want to see copies of config files or logs let me know which ones.

Αndré

We need to see it live in your gallery. Screenshots won't help. I'll send you a PM with my contact details now.

pointer2null

Sent details - via normal email as I don't seem to be allowed to send PM's via the board.

pointer2null

p.s. server only online 08:00 to 23:59 BST

pointer2null

So, did viewing the page directly reveal anything the screen capture didn't?

Αndré

Sorry for the delay, I had time to have a look at it just now.

In the file info, there's a line
Dimensions: 1080 x 1554 pixels

while the actual image dimensions are
750px × 1.080px

Please use the admin tools to update your full-sized pictures. If it doesn't work, you could try to disable the transparent image overlay. This may not fix the actual issue, but may fix the display in your gallery.

I'd like to fix the actual issue, so please post a screenshot of the "File settings" block of your Coppermine configuration page.

pointer2null

Andre,

Running the admin command to update all images seems to have fixed the issue. All images now display correctly.

I've attached a image of the file settings.

Interestingly I added the same photo again (renamed as coppermine doesn't handle duplicate file names) and it's done exactly the same thing to the image. Then I disabled the overlay and the image displays correctly. Re-enabling the overlay and the problem returns.

If you need anything else to try and pin down the issue let me know.

Αndré

I wasn't able to reproduce the issue in my testbed. I used the file from your gallery. If it's not the original picture, please attach the original, full-sized picture to your next reply.

pointer2null

The original is to large for the forum so I've emailed it to the address you gave before.

Αndré

I was able to reproduce the issue. Doesn't happen if watermark is disabled, so I'll have a closer look at the watermarking process.

Αndré

Please open include/picmgmt.inc.php, find
if (($result = resize_image($work_image, $image, $wm_max_upl_width_height, $CONFIG['thumb_method'], 'any', 'true')) !== true) {
and replace with
if (($result = resize_image($work_image, $image, max($imagesize[0], $imagesize[1]), $CONFIG['thumb_method'], 'any', 'true')) !== true) {

With that change, your picture should be displayed (and resized) correctly after the upload. Please report if it works as expected.