Pixel size too large

A historical forum for issues reported in the suggestions and bugs forum that have been subsequently fixed or resolved.
Post Reply
Sam
Posts: 84
Joined: 13 Apr 2011, 23:41
My cats species list: 29 (i:4, k:0)
My aquaria list: 8 (i:1)
Location 1: uk
Location 2: wrecktham
Interests: Plecos

Pixel size too large

Post by Sam »

pixel size must be 1600 x 1600 =; what? you mean i can't upload my personal tank pictures because the site can't manage normal camera photography?, I'd have converted them if I knew how but it's really frustrating to see all these tanks then not be able to show my own progress.. Please sort this out planetcatfish... thankyou.
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Pixel size too large

Post by MatsP »

There is a request for this already, somewhere in the back of the list. I will merge this into that thread.

However, if you want to upload your pictures now, you can download Irfanview (it's free, and not very large either!), load up your picture in IrfanView, press Ctrl-R, and type in a number smaller than 1600, say 800 in the larger of the height/width field, wait a second whilst it does the size conversion and save (under a different name if you want to still have the original picture for other purposes), and upload that image. I guarantee that this is actually quicker than uploading a much larger image (sure, if your picture is JUST over in one dimension, it probably isn't, but if you are talking about a 10+ Mpixel camera, the image will be several times larger, and upload speeds are typically slower than your download speed).

I don't use that method for MY images, because I shoot in Canon RAW format, which needs to be converted before the site will accept it. I then just convert it to a size that is suitable for the internet, typically 800 x 533, unless I've cropped the image to a different proportion.

For images that I upload to the site from other sources, such as Cat-eLog images, I do any edits necessary in IrfanView.

--
Mats
Sam
Posts: 84
Joined: 13 Apr 2011, 23:41
My cats species list: 29 (i:4, k:0)
My aquaria list: 8 (i:1)
Location 1: uk
Location 2: wrecktham
Interests: Plecos

Re: Pixel size too large

Post by Sam »

Thankyou very much I will get on the case b-)
Sam
Posts: 84
Joined: 13 Apr 2011, 23:41
My cats species list: 29 (i:4, k:0)
My aquaria list: 8 (i:1)
Location 1: uk
Location 2: wrecktham
Interests: Plecos

Re: Pixel size too large

Post by Sam »

:d fantastic help, bless ya.
User avatar
Jools
Expert
Posts: 15994
Joined: 30 Dec 2002, 15:25
My articles: 197
My images: 944
My catfish: 238
My cats species list: 87 (i:13, k:1)
My BLogs: 7 (i:7, p:202)
My Wishlist: 23
Spotted: 447
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Pixel size too large

Post by Jools »

This is one of the issues that I am really split on, but maybe now our move to a new server will change that.

Uploading an image straight off a camera is very wasteful of your (and my servers) bandwidth but especially off my servers CPU as it has to do the work in resizing the image down. That said, that's all a bit "technology snob" and also, in the real world, not something a lot of leading sites worry about. Facebook, for example, doesn't care when you send it a massive image.

As I said, Planet now runs on a dedicated server, so this is less of an issue now. I think, I don't really know for sure yet.

So, to cut a long story short, I would like to remove image upload size limitations (or at least make them around 4MB) and do the resizing on our server. But it might break the site, if it does, we back it out.

So, this is one to keep in this forum until Mats or I get time to look at it.

Cheers,

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Pixel size too large

Post by MatsP »

If you tell me what size you want, I'll make the change.

For reference, a EOS 60D is 5184 x 3456 pixels (18MP). The full-size JPEG is about 10MB at that size. EOS 50D is 4752 x 3768, which makes about 7.8MB of JPEG.

--
Mats
User avatar
Jools
Expert
Posts: 15994
Joined: 30 Dec 2002, 15:25
My articles: 197
My images: 944
My catfish: 238
My cats species list: 87 (i:13, k:1)
My BLogs: 7 (i:7, p:202)
My Wishlist: 23
Spotted: 447
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Pixel size too large

Post by Jools »

I think that big will break "out of the box" PHP. So, make as big as won't break PHP! :-) It's the image_handler() function and something in there like copyresample or copyresize that does the CPU heavy stuff (that breaks).

Try it on your test rig and then I will put it live when I have time to monitor it. I think we also need email alerts around big images failing?

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Pixel size too large

Post by MatsP »

Ok, will have a little look at it (and I'll go find the other thread about image sizes and merge). [At least this one I think I know how to work out, rather than the "onclick/javascript" problem with food!]

--
Mats
User avatar
Jools
Expert
Posts: 15994
Joined: 30 Dec 2002, 15:25
My articles: 197
My images: 944
My catfish: 238
My cats species list: 87 (i:13, k:1)
My BLogs: 7 (i:7, p:202)
My Wishlist: 23
Spotted: 447
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Pixel size too large

Post by Jools »

I can look at the other one tomorrow night or Weds? Let me know?

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Pixel size too large

Post by MatsP »

I'm sure it's something simple - but probably somewhere completely different from where I think it is. I just uploaded a 18MP image to my local Cat-eLog, and it worked just fine. It takes a few seconds to upload locally...

It then takes several seconds (on my laptop, mind) to convert the image tho', and it might be an idea to cut down on the size just a bit...

--
Mats
User avatar
apistomaster
Posts: 4735
Joined: 10 Jun 2006, 14:26
I've donated: $90.00!
My articles: 1
My cats species list: 12 (i:0, k:0)
My Wishlist: 1
Location 1: Clarkston, WA, USA
Location 2: Clarkston, WA, USA
Interests: Aquaculture and flyfishing

Re: Pixel size too large

Post by apistomaster »

Even easier than irfanview is the Windows PowerToy Photo resizer. Comes in 32 and 64 bit systems but you may have specify the right version for you.
I retains the original the makes copy next to the original and it has 640 X 480 small size and three other larger sizes to choose from. It will add to the original label small, medium and large which makes browsing your photos for the desired size easy.
Read the review then down load this freebie if you like it.
http://download.cnet.com/Image-Resizer- ... 05400.html
To use it just highlight the photo, right click, choose photo size then click OK.
I use the 640 X 480(small) a lot because some forums do not allow uploading large JPEG files and it is perfect for e-mail attachments.
Avid Trout fly fisherman. ·´¯`·...¸><)))º>
User avatar
Jools
Expert
Posts: 15994
Joined: 30 Dec 2002, 15:25
My articles: 197
My images: 944
My catfish: 238
My cats species list: 87 (i:13, k:1)
My BLogs: 7 (i:7, p:202)
My Wishlist: 23
Spotted: 447
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Pixel size too large

Post by Jools »

OK, well, let's take off the limits but introduce an admin email alert if submission break?

Cheers,

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Pixel size too large

Post by MatsP »

Yes, looking at email alert right now.

--
Mats
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Pixel size too large

Post by MatsP »

I can't test it locally (other than for the WORKING case) - I just did a quick calculation, and I guess if your virtual memory size for a process is less than about 100MB, I suspect resizing of 18MP images will fail.

I've made the changes (kept the logic, just made sizes so large that you need a next generation medium format digital back - Phase One currently have a 80MP digital back for cameras like Hasselblad, and it's 10328 x 7760, and I set the max size to 16000 x 16000 pixels, and a 20MB maximum image size).

In revision 488.

--
Mats
User avatar
Jools
Expert
Posts: 15994
Joined: 30 Dec 2002, 15:25
My articles: 197
My images: 944
My catfish: 238
My cats species list: 87 (i:13, k:1)
My BLogs: 7 (i:7, p:202)
My Wishlist: 23
Spotted: 447
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Pixel size too large

Post by Jools »

MatsP wrote:In revision 488.
Uploaded. I see you fixed my dodgy spelling too. :-)

Jools
User avatar
Jools
Expert
Posts: 15994
Joined: 30 Dec 2002, 15:25
My articles: 197
My images: 944
My catfish: 238
My cats species list: 87 (i:13, k:1)
My BLogs: 7 (i:7, p:202)
My Wishlist: 23
Spotted: 447
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Pixel size too large

Post by Jools »

@Sam,

Want to try uploading a full size image now?

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 10 (i:8)
My BLogs: 4 (i:0, p:97)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Pixel size too large

Post by MatsP »

My mega-large pictures didn't work at all - seems like the server timed out, admittedlym, it took a couple of minutes to upload a 10MB (theoretically, at 1Mb/s [I'm on sluggish broadband], that would be 80 seconds, but there is overhead, so 2-3 minutes is realistic, and the server may not like a POST taking that long...)

A 3000 x 2000 (6MP) picture works fine.

I don't know if we can actually fix the timeout problem - you don't really want to have the server sitting waiting a long time for other reasons, and I don't think you can set different timeouts for different POSTs.

Mind you, uploading to FB seems to work - and it was much quicker, I wonder if they process the image locally?

--
Mats
User avatar
Jools
Expert
Posts: 15994
Joined: 30 Dec 2002, 15:25
My articles: 197
My images: 944
My catfish: 238
My cats species list: 87 (i:13, k:1)
My BLogs: 7 (i:7, p:202)
My Wishlist: 23
Spotted: 447
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Pixel size too large

Post by Jools »

So, is this now resolved? Sam, do you want to try uploading a bigger pic?

Jools
Sam
Posts: 84
Joined: 13 Apr 2011, 23:41
My cats species list: 29 (i:4, k:0)
My aquaria list: 8 (i:1)
Location 1: uk
Location 2: wrecktham
Interests: Plecos

Re: Pixel size too large

Post by Sam »

Oh my goodness! that's fantastic! thankyou very muchly :d I can even see my male dekyseria at the bottom of my ayahuasca tank in the image!! (*) (*) (*) (*) (*) (*) ^:)^ :YMPARTY: :YMAPPLAUSE: :-BD \M/
Post Reply

Return to “All Resolved Issues”