Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Coppermine ⇒ [solved] restrict image size to screen


[solved] restrict image size to screen
Please post bugs in the Projects Module.
Post anything and everything else about Coppermine in this forum.

Go to page 1, 2  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & BlocksCoppermine

View previous topic :: View next topic  
Author Message
macuserau
Nice poster
Nice poster

Offline Offline
Joined: May 18, 2006
Posts: 124
Location: South Coast Australia
PostPosted: Thu Nov 24, 2011 3:09 am
Post subject: [solved] restrict image size to screen

Is there a way to make the full size image view restrict the image size to your screen size, I have the same request for the slide show as well.

Currently the image makes the site change size and brings up the scrolling bars. I wish to at least prevent this at least for left to right.

Any help is appreciated


macuserau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
unix / Apache 2.2.15 / MySQL 5.0.92 / PHP 5.3.8/ CMS 9.3.3.0
Back to top
View user's profile Visit poster's website
layingback
Forum Admin
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Thu Nov 24, 2011 8:03 am
Post subject: Re: image size

Search for "image resize" - 3 of the 1st 5 replies give you options.

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website Photo Gallery
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Nov 24, 2011 2:16 pm
Post subject: Re: image size

Hi guys, I never noticed Bush and Layingback rightful problem and related workaround so I never had the chance to put my 2 cents in.

I would rather use css and themes ref to nukebiz.com/Forums/vie...3084/#3084

in your theme's style.css
Code::
.bigimage { max-width:600px }

in your theme's ie6.css
Code::
.bigimage { width: expression(this.clientWidth > 600 ? "600px" : "auto") }

then only in the images where you think appropriate you will have to add
Code::
class="bigimage"

[edit]
Using this.clientWidth
Use in ie6.css instead of ie7.css
[/edit]

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed


Last edited by NanoCaiordo on Mon Nov 28, 2011 8:08 am; edited 2 times in total
Back to top
View user's profile Visit poster's website Photo Gallery
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Mon Nov 28, 2011 7:51 am
Post subject: Re: image size

For forum topics, replies, previews:

  • /themes/default/styles/style.css
Code::
.postbody img{
  max-width: 600px;
}

  • /themes/default/styles/ie6.css (v9)
  • /themes/default/styles/ie8.css (v9)
  • /themes/default/styles/msie6.css (v10)
  • /themes/default/styles/msie8.css (v10)
Code::
/**
* CPG Dragonfly CMS
* Copyright (c) 2011 by Dragonfly Dev Team, dragonflycms.org
* Released under the GNU GPL version 2 or any later version
*/
.postbody {
 width:600px;
}
.postbody img{
 width: expression(this.clientWidth > 600 ? "600px" : this.clientWidth+"px");
 /*height: expression((this.clientHeight * (this.style.width/this.clientWidth))+"px");*/
}

  • Open: /themes/default/templates/forums/viewtopic_body.html
  • Line: 98
  • Change:
Code::
      <td colspan="2"><hr /><div class="postbody" style="overflow:auto; width:100%;">{postrow.MESSAGE}</div>
  • With:
Code::
      <td colspan="2"><hr /><div class="postbody" style="overflow:auto">{postrow.MESSAGE}</div>

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed


Last edited by NanoCaiordo on Mon Nov 28, 2011 11:35 am; edited 2 times in total
Back to top
View user's profile Visit poster's website Photo Gallery
macuserau
Nice poster
Nice poster

Offline Offline
Joined: May 18, 2006
Posts: 124
Location: South Coast Australia
PostPosted: Mon Nov 28, 2011 10:36 am
Post subject: Re: image size

Thanks guys for the replies, but I was meaning just in the Coppermine, popup window for full screen image views.

When I view them currently the are about 2 times the size of the screen. I just want to have them fit the screen in width.

Does the forum code you have given suit coppermine as well?


macuserau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
unix / Apache 2.2.15 / MySQL 5.0.92 / PHP 5.3.8/ CMS 9.3.3.0
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Mon Nov 28, 2011 11:30 am
Post subject: Re: image size

Code edited.

Will soon updated with coppermine.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
macuserau
Nice poster
Nice poster

Offline Offline
Joined: May 18, 2006
Posts: 124
Location: South Coast Australia
PostPosted: Mon Nov 28, 2011 11:31 am
Post subject: Re: image size

Thanks Nano


macuserau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
unix / Apache 2.2.15 / MySQL 5.0.92 / PHP 5.3.8/ CMS 9.3.3.0
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Sat Dec 10, 2011 10:04 am
Post subject: Re: image size

I've got a little confused ... in coppermine we have a pop up for "full size" images, not "full screen".

Two ways, to achieve this.
You can setup your coppermine max img size to your favourite dimensions, and it will be valid for all your new pictures, preferred.

Otherwise it have to be done at javascript level, not built-in since we all want full size images to maintain a high resolution.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
macuserau
Nice poster
Nice poster

Offline Offline
Joined: May 18, 2006
Posts: 124
Location: South Coast Australia
PostPosted: Sun Jan 22, 2012 11:16 am
Post subject: Re: [solved] image size

Happy with the presivation of the resolution, but when people view the album in slide show or just the lager image they only get to view the top left corner of the higher resolution picture.
Great for preserving resolution not that good for the users viewing albums or using slide shows.
I will try and look for js functionality to manage this.


macuserau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
unix / Apache 2.2.15 / MySQL 5.0.92 / PHP 5.3.8/ CMS 9.3.3.0
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Sun Jan 22, 2012 1:16 pm
Post subject: Re: [solved] image size

I'm sure we are not talking about the same thing.

Pass me a url and directions (clicks) to an accessible page, where I can see what you are talking about.

Coppermine have a correct amount of settings for image and thumbnail sizes for you to have this problem ...

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
macuserau
Nice poster
Nice poster

Offline Offline
Joined: May 18, 2006
Posts: 124
Location: South Coast Australia
PostPosted: Tue Jan 31, 2012 8:13 am
Post subject: Re: image size

Try this slide show Nano

Slide show

Once you click on it you will see that it shows the full resolution image but not the image at full screen.


macuserau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
unix / Apache 2.2.15 / MySQL 5.0.92 / PHP 5.3.8/ CMS 9.3.3.0
Back to top
View user's profile Visit poster's website
macuserau
Nice poster
Nice poster

Offline Offline
Joined: May 18, 2006
Posts: 124
Location: South Coast Australia
PostPosted: Tue Jan 31, 2012 8:15 am
Post subject: Re: image size

So what i want to acheive is large full resolution images displayed full screen during a slide show.

Not just a slide show of just top left hand corner of the full resolution image.


macuserau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
unix / Apache 2.2.15 / MySQL 5.0.92 / PHP 5.3.8/ CMS 9.3.3.0
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Tue Jan 31, 2012 12:52 pm
Post subject: Re: image size

Cant have full resolution image display at full screen, unless the image resolution is less then screen size.

What you want is to get the slideshow image to fit inside the screen (so at reduced resolution), which can be easily achieved by correctly using coppermine settings.

Paste here all coppermine related image settings, and we will have a look together.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
macuserau
Nice poster
Nice poster

Offline Offline
Joined: May 18, 2006
Posts: 124
Location: South Coast Australia
PostPosted: Wed Feb 08, 2012 10:24 am
Post subject: Re: image size

Thanks Nano

I have attached what I think you want to look at.


macuserau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
unix / Apache 2.2.15 / MySQL 5.0.92 / PHP 5.3.8/ CMS 9.3.3.0
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Fri Feb 10, 2012 12:12 am
Post subject: Re: image size

admin.php?op=info&mods
do you see gd, imagemagick or netpbm installed?

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & BlocksCoppermine
Page 1 of 2
All times are GMT
Go to page 1, 2  Next



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

อ่านต่อ...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy