Jump to content


Photo

Recent images some are massive - IPS Gallery


  • Please log in to reply
11 replies to this topic

#1 tenaki

tenaki

    Needs Serious Help

  • +Clients
  • 1,551 posts

Posted 16 August 2012 - 12:00 PM

and I mean massive,

http://community.inv...er.com/gallery/

6,465px × 4,086px

[animepaper.net]picture Art anime guilty crown guilty crown picture 228924 suemura 6465x4086 4958e060.png

Attached File  1.jpg   41.2KB   11 downloads Attached File  2.jpg   43.75KB   7 downloads

IP.Board 3.3.4


#2 ΑndyF

ΑndyF

    iQA4u

  • Marketplace Moderator
  • PipPipPipPipPipPipPipPipPip
  • 23,709 posts

Posted 16 August 2012 - 12:03 PM

That image is about 9mb in file size...

I would guess that GD was unable to create smaller sizes (related to your bug report perhaps, locally mines OK up to about 7ish mb) and that's why its displaying the full one, it white pages on attempting to 'view all sizes'

#3 Saiga

Saiga

    Advanced Member

  • +Clients
  • 319 posts

Posted 16 August 2012 - 01:19 PM

There's currently an open bug report dealing with this.

Hopefully the problem will be fixed soon.

Sailing in the dark isn't smart, kid!

 

Enhance The End User's Experience :)


@Mentions 1.0.3
Last Updated May 15 2013 07:02 PM

 

 


#4 bfarber

bfarber

    RBT-KS

  • IPS Management
  • 27,076 posts

Posted 16 August 2012 - 03:58 PM

The files are simply too large for GD to manipulate with our 128MB memory limit. The options are
  • Increase the memory limit (which our hosting guys aren't keen to do)
  • Limit the size of files users can upload to the gallery

We have deleted those files and restricted submissions to 5MB, which *should* be ok in most cases.

Realistically, if you have an image-heavy site dealing with 10MB image files, you are probably best off using imagemagick instead of GD for resizing. It is much more efficient at handling larger images.
Brandon Farber
Developer / Senior Support

If it sounds like fun, it's not allowed on the bus!

Posted Image     Posted Image

Invision Power Services, Inc.

#5 Rimi

Rimi

    Strip Me

  • +Clients
  • 5,774 posts

Posted 16 August 2012 - 04:04 PM

Can you put some kind of note in the ACP to limit your image size if you're using GD?

#6 ⚔ Kirito

⚔ Kirito

    Mad Scientist

  • Members
  • PipPipPipPipPipPip
  • 1,198 posts

Posted 16 August 2012 - 05:36 PM

The files are simply too large for GD to manipulate with our 128MB memory limit. The options are

  • Increase the memory limit (which our hosting guys aren't keen to do)
  • Limit the size of files users can upload to the gallery
We have deleted those files and restricted submissions to 5MB, which *should* be ok in most cases.

Realistically, if you have an image-heavy site dealing with 10MB image files, you are probably best off using imagemagick instead of GD for resizing. It is much more efficient at handling larger images.

I've been using imagemagick on my community for over a year, so maybe that's why I never noticed. I was going to second what Lucy said, or maybe a notice recommending users use Imagemagick if they're going to be supporting large uploads as well.

Still, a 128M limit isn't enough for a 8MB image? That's quite surprising, what memory limit would you generally need to handle such images?

#7 3DKiwi

3DKiwi

    IPB regular

  • +Clients
  • 4,875 posts

Posted 17 August 2012 - 02:53 AM

I assume Gallery 5 has image resolution restrictions like what previous gallery versions have?

3DKIwi
C4D Cafe My IPB powered web site.

#8 Heyhoe

Heyhoe

    Spam Happy

  • +Clients
  • 560 posts

Posted 17 August 2012 - 09:51 AM

If the image could be re-sized on upload, this would be brilliant.
Paul Heyhoe - http://www.osatuk.com

#9 bfarber

bfarber

    RBT-KS

  • IPS Management
  • 27,076 posts

Posted 17 August 2012 - 12:17 PM

Can you put some kind of note in the ACP to limit your image size if you're using GD?

I've been using imagemagick on my community for over a year, so maybe that's why I never noticed. I was going to second what Lucy said, or maybe a notice recommending users use Imagemagick if they're going to be supporting large uploads as well.

Still, a 128M limit isn't enough for a 8MB image? That's quite surprising, what memory limit would you generally need to handle such images?


The problem is, if you have no memory limit (or an extremely high one), GD can still handle large images. It just requires a LOT of memory to do so.

I would need a copy of your 8MB image so I can work with it locally in my profiling setup to determine how much memory is actually consumed. It's not something I'd like to guess at.

I assume Gallery 5 has image resolution restrictions like what previous gallery versions have?

3DKIwi


You referring to pixel width and height? If so, yes.

If the image could be re-sized on upload, this would be brilliant.


Images are resized upon upload.
Brandon Farber
Developer / Senior Support

If it sounds like fun, it's not allowed on the bus!

Posted Image     Posted Image

Invision Power Services, Inc.

#10 ⚔ Kirito

⚔ Kirito

    Mad Scientist

  • Members
  • PipPipPipPipPipPip
  • 1,198 posts

Posted 17 August 2012 - 09:41 PM

Well, that does remind me, I believe all the images that remained "massive" gave that 500 error on upload.

Could IP.Gallery detect that the image failed to resize and simply reject/delete it?

#11 bfarber

bfarber

    RBT-KS

  • IPS Management
  • 27,076 posts

Posted 20 August 2012 - 09:16 AM

When PHP throws a fatal error, that's it, end of script execution. There might be ways to work around that, but I'm not sure they're worth it at the moment.
Brandon Farber
Developer / Senior Support

If it sounds like fun, it's not allowed on the bus!

Posted Image     Posted Image

Invision Power Services, Inc.

#12 ⚔ Kirito

⚔ Kirito

    Mad Scientist

  • Members
  • PipPipPipPipPipPip
  • 1,198 posts

Posted 20 August 2012 - 06:49 PM

When PHP throws a fatal error, that's it, end of script execution. There might be ways to work around that, but I'm not sure they're worth it at the moment.

Understandable. Just thought I'd throw it out there.

I think as long as some warning is displayed under the file size limit setting that should be sufficient.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users