close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Gallery is resizing my images (larger than their actual size)

Thread began 1/03/2013 12:04 am by sales189614 | Last modified 6/24/2013 5:43 pm by Jason Byrnes | 1662 views | 18 replies |

sales189614

Gallery is resizing my images (larger than their actual size)

I am using version 1.

I have all of my images set to 600 pixels wide (I have a particular reason I need them this size) and no matter what I do, after uploading them to the gallery, they are displaying when enlarge at 941 pixels.

Here is an example: index.php?gallery=10&theme=light

I do have one other gallery created that is acting perfectly normal: index.php?gallery=3&theme=light

For some reason, no matter what I do, the gallery is resizing my images to a larger size. Even the regular image that is not enlarged is displaying bigger.

I have tried deleting the galleries (I am having the same issue with 3 galleries, only 1 of 4 is acting normal), and recreating them, with different names even, but nothing seems to work. My client is getting a little worried, maybe irritated is a better word. I need to get this fixed. I don't know why it is doing this.

I would really appreciate any help. Actually, I'm begging!

Thanks in advance!

Sign in to reply to this post

sales189614

I saw another post I thought might help me.

In the gallery style I set for this gallery in the index file, I change this line:

$gallery = get_gallery(get_mediarss_url('gallery=' . $pg_id . '&thumb=62c&full=782p&super=1024p'));

To this line:

$gallery = get_gallery(get_mediarss_url('gallery=' . $pg_id . '&thumb=62c&full=600p&super=339p'));

What that did was gave me an eternally loading screen, and the images never loaded.

So that is the first thing I have tried.

Help???

Sign in to reply to this post

sales189614

Nobody? I'm desperate, LOL!

Sign in to reply to this post

Jason ByrnesWebAssist

see this thread for details on creating custom image sizes in power gallery 1:
showthread.php?t=8844

the image size needs to be defined in the properties file before it can be used in the gallery file.

Sign in to reply to this post

sales189614

Jason,

Thanks for the reply. That's the one I already tried (as I stated in my first reply to my own post, LOL!), and it didn't work. Unless, I did it incorrectly (which is ENTIRELY possible)?

Would you be willing to show me how to do it so that the "enlarged" images are 600 pixels wide? The height is going to vary because my client is cropping them and they will not always be the same, but I need for the "enlarged" images to always be 600 pixels wide. Could you show me how to do that in the admin/common/properties.php file as well as the index file for the gallery style chosen?

You'd be doing me a HUGE favor, and I would be eternally grateful!

Sign in to reply to this post

Jason ByrnesWebAssist

in your code:
$gallery = get_gallery(get_mediarss_url('gallery=' . $pg_id . '&thumb=62c&full=600p&super=339p'));


you are adding 2 new file sizes, 600p and 339p. these would need to need to be added to the proportional array:


php:
$GLOBALS['resize_proportional'] = array( 

    array('w' => 1024, 'h' => 768, 'watermark' => true), 
    array('w' => 600, 'h' => 600, 'watermark' => true), 
    array('w' => 339, 'h' => 339, 'watermark' => true), 
    array('w' => 782, 'h' => 481, 'watermark' => true), 
    array('w' => 163, 'h' => 92)
);




then you would need to edit the watermark in the gallery to have the images regenerated.

Sign in to reply to this post

sales189614

Thanks! Edit what watermark? I don't have a watermark. I'm confused on that part.

Sign in to reply to this post

Jason ByrnesWebAssist

in the gallery admin, go to the settings and set a water mark, this will force the gallery to regenerate the images.

you can remove it after it has been applied.

Sign in to reply to this post

sales189614

Hmm, Ok I will try that. Thank you Jason!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Sign in to reply to this post

sales189614

Sorry Jason, one more quick question. I had the 339 in there because it was the height of an image and I didn't know what else to put in there. If I just want ALL images to be 600 wide and whatever they turn out to be when cropped by my client, would I need all of that? And I wouldn't need the 339 one right? Thanks again. You're a life saver.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...