Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: random image mangling  (Read 6724 times)

0 Members and 1 Guest are viewing this topic.

pointer2null

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
random image mangling
« on: October 13, 2015, 08:53:21 pm »

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)?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: random image mangling
« Reply #1 on: October 16, 2015, 04:23:09 pm »

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

pointer2null

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: random image mangling
« Reply #2 on: October 16, 2015, 05:19:15 pm »

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)
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: random image mangling
« Reply #3 on: October 16, 2015, 08:35:30 pm »

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

pointer2null

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: random image mangling
« Reply #4 on: October 16, 2015, 10:04:29 pm »

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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: random image mangling
« Reply #5 on: October 16, 2015, 10:30:00 pm »

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

pointer2null

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: random image mangling
« Reply #6 on: October 16, 2015, 11:05:37 pm »

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

pointer2null

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: random image mangling
« Reply #7 on: October 16, 2015, 11:28:44 pm »

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

pointer2null

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: random image mangling
« Reply #8 on: October 19, 2015, 10:30:39 pm »

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

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: random image mangling
« Reply #9 on: October 20, 2015, 08:45:26 pm »

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

In the file info, there's a line
Code: [Select]
Dimensions: 1080 x 1554 pixels
while the actual image dimensions are
Code: [Select]
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.
Logged

pointer2null

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: random image mangling
« Reply #10 on: October 20, 2015, 09:12:57 pm »

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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: random image mangling
« Reply #11 on: October 21, 2015, 10:06:10 am »

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.
Logged

pointer2null

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: random image mangling
« Reply #12 on: October 21, 2015, 05:31:30 pm »

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

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: random image mangling
« Reply #13 on: October 22, 2015, 10:24:31 am »

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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: random image mangling
« Reply #14 on: October 22, 2015, 02:23:38 pm »

Please open include/picmgmt.inc.php, find
Code: [Select]
if (($result = resize_image($work_image, $image, $wm_max_upl_width_height, $CONFIG['thumb_method'], 'any', 'true')) !== true) {and replace with
Code: [Select]
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.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.