All of the pictures in my gallery continue to resize to a width of 550 px. The height does not seem to be affected but I can't prevent it from shrinking the width. I have tried different settings but nothing works... help!
Pasadena! (I recently had to move back to the East coast from Pasadena and miss it very much!)
That's very odd... What are the resizing settings for that album? (Get from the "properties" link in the top-right drop-down menu in that album)
-Beckett (
)
billpimpclinton
Joined: 2004-09-06
Posts: 4
Posted: Sun, 2004-10-03 14:18
Yea Pasadena is great .... At least now you get to enjoy different seasons I'm sure.
Here is the resizing information for the album. I hope this is what you need. By the way it only happens when you view the album as embedded.
Maximum dimensions of intermediate sized images : 800
Maximum dimensions of full sized images : off
Maximum file size of full sized JPEG/PNG images... : 0
Auto fit-to-window for images without a resized copy : no
Offer visitors ability to specify preference ... : no
beckett
Joined: 2002-08-16
Posts: 3474
Posted: Mon, 2004-10-04 02:26
Your Gallery is using a customized theme... "Nosebleed for phpBB" or somethingor other. It's ignoring your auto fit-to-window preferences and inserting some Javascript code that's forcing the image width down to 550 px.
So I'd recommend you either change to a regular Gallery skin... or perhaps contact the person who developed that theme to get help. Unfortunately, I don't think any of us here are familiar with that customized code. Still... I'm sure with a bit of hunting you could find that Javascript code in the customized skin files and pull it out.
-Beckett (
)
billpimpclinton
Joined: 2004-09-06
Posts: 4
Posted: Mon, 2004-10-04 06:36
Beckett... thanks a million. I was able to take care of it.
beckett
Joined: 2002-08-16
Posts: 3474
Posted: Mon, 2004-10-04 16:45
Cool. Was it tough to fix? Can you maybe give a quick summary? Not sure how many other people this might affect, but it'd be nice to have a quick-fix if anybody lands on this page with the same issue.
Thanks!
-Beckett (
)
billpimpclinton
Joined: 2004-09-06
Posts: 4
Posted: Thu, 2004-10-07 06:33
Umm... okay, but I just type stuff in and hope it works. I got lucky.
Like you said the problem was specific to the NoseBleed skin for PHPBB. The file "overall_header.tpl" contained a resizing script that modified all the pictures. The script read:
<script language="javascript" type="text/javascript">
<!--
function resize_images()
{
for (i = 1; i < document.images.length; i++)
{
while ( !document.images[i].complete )
{
break;
}
if ( document.images[i].width > 550 )
{ document.images[i].width = 550;
}
}
}
//-->
</script>
I changed it to:
<script language="javascript" type="text/javascript">
<!--
function resize_images()
{
for (i = 1; i < document.images.length; i++)
{
while ( !document.images[i].complete )
{
break;
}
if ( document.images[i].width > 550 )
{ document.images[i].width = <?php $imageWidth ?>;
}
}
}
//-->
</script>
There may be a better way of doing it, but the above worked for me.
Posts: 3474
Pasadena! (I recently had to move back to the East coast from Pasadena and miss it very much!)
That's very odd... What are the resizing settings for that album? (Get from the "properties" link in the top-right drop-down menu in that album)
-Beckett (
)
Posts: 4
Yea Pasadena is great .... At least now you get to enjoy different seasons I'm sure.
Here is the resizing information for the album. I hope this is what you need. By the way it only happens when you view the album as embedded.
Maximum dimensions of intermediate sized images : 800
Maximum dimensions of full sized images : off
Maximum file size of full sized JPEG/PNG images... : 0
Auto fit-to-window for images without a resized copy : no
Offer visitors ability to specify preference ... : no
Posts: 3474
Your Gallery is using a customized theme... "Nosebleed for phpBB" or somethingor other. It's ignoring your auto fit-to-window preferences and inserting some Javascript code that's forcing the image width down to 550 px.
So I'd recommend you either change to a regular Gallery skin... or perhaps contact the person who developed that theme to get help. Unfortunately, I don't think any of us here are familiar with that customized code. Still... I'm sure with a bit of hunting you could find that Javascript code in the customized skin files and pull it out.
-Beckett (
)
Posts: 4
Beckett... thanks a million. I was able to take care of it.
Posts: 3474
Cool. Was it tough to fix? Can you maybe give a quick summary? Not sure how many other people this might affect, but it'd be nice to have a quick-fix if anybody lands on this page with the same issue.
Thanks!
-Beckett (
)
Posts: 4
Umm... okay, but I just type stuff in and hope it works. I got lucky.
Like you said the problem was specific to the NoseBleed skin for PHPBB. The file "overall_header.tpl" contained a resizing script that modified all the pictures. The script read:
<script language="javascript" type="text/javascript">
<!--
function resize_images()
{
for (i = 1; i < document.images.length; i++)
{
while ( !document.images[i].complete )
{
break;
}
if ( document.images[i].width > 550 )
{
document.images[i].width = 550;
}
}
}
//-->
</script>
I changed it to:
<script language="javascript" type="text/javascript">
<!--
function resize_images()
{
for (i = 1; i < document.images.length; i++)
{
while ( !document.images[i].complete )
{
break;
}
if ( document.images[i].width > 550 )
{
document.images[i].width = <?php $imageWidth ?>;
}
}
}
//-->
</script>
There may be a better way of doing it, but the above worked for me.
There is also a site that supports issues specific to the skin. Here is the site: http://community.mikelothar.com/
Gracias!
Posts: 3474
Thanks for writing up the summary!!