HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[RESOLVED] Images getting resized in gallery

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#69783 (In Topic #14794)
Avatar

Community saint

When images get uploaded to the gallery, ocPortal resizes them to a maximum of 1024 wide.

Initially this did not bother me as I could live with my 1920 wide images being resized (I wasn't too thrilled about it, but I accepted it). I now need to include panoramic photos which must not be resized as they will loose far too much detail. The largest panoramic photo I currently have is 9296 x 1200 which ocPortal resized to 1024 132. The 1024 x 132 is fine as a preview size, but there is no option to download full size image.

Also taking a closer look at my non-panoramic images I can see many of them that will also suffer if they are not available in their original size.

Is there anything that can be done to make the full size images also available in the gallery, either as a download link, or link/click to show it full screen.


Last edit: by temp1024

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#69786
Avatar

The gallery was not designed for downloads, only for viewing directly online.

You could raise the maximum image size config option and then use the {$THUMBNAIL,...} symbol in the template that shows it to knock the size back down.

Alternatively you could use the download system, which supports uploading companion images.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69789
Avatar

Community saint

Thanks Chris, {$THUMBNAIL,…} did the trick. I now have it showing preview images at a max of 1024x768, and when the image is clicked it goes to the full size image in a new window.

The only problem I have now is that I wanted to put size info below the image using "Size {$IMAGE_WIDTH,{URL*}}x{$IMAGE_HEIGHT,{URL*}}", but I get an "Unauthorized access to URL" error.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#69790
Avatar

The '*' should be on IMAGE_WIDTH/IMAGE_HEIGHT, not URL. Don't know if that's the cause though.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69791
Avatar

Community saint

That made no difference. I'm assuming that it has nothing to do with the fact that its a URL, and not a local path.

Also on that URL note, I assume that ocPortal in not going to download the file to itself and thereby use server bandwidth (in both directions no less).

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#69792
Avatar

It shouldn't download local URLs, no, it'll read from the file system.

I'm not sure what's going on here to be honest. The code is at the top of sources/images.php.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69793
Avatar

Community saint

Good to know the system is smart enough not to try and download from itself.

As for the error, here is the stack trace:
Attachment
» Download: thumb.txt (3 Kb, 96 downloads so far)

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#69794
Avatar

Looks like what it was supposed to do wasn't working. Try this.

Attachment
sources/images.php
» Download: images.php (34 Kb, 49 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#69826
Avatar

Community saint

That did the trick, thanks Chris!

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: