Forums

[resolved] [Plugin: NextGEN Gallery] no auto resize on upload? (5 posts)

  1. foxeye
    Member
    Posted 2 years ago #

    After setting the Resize Images parameters the resizing obviously does not take place after upload automatically. I still have my original image size and have to resize manually through Manage Gallery. Thought the plugin (or GD) would do the rezising for me during upload. Is this the way it should work or am I missing something here?

  2. foxeye
    Member
    Posted 2 years ago #

    Goolge search tells me it can only be done manually (manage gallery). Any hacks to make this happen automatically are welcome...

  3. xumber
    Member
    Posted 2 years ago #

    i also whant this

  4. Valerio1789
    Member
    Posted 1 year ago #

    Got the same,I found this but I don't know where to put it. It refers to an older version of NGG.

    The file functions.php is changed now is called nggfunctions.php and I believe is different from the earlier one.

    Please help should only take 5min.

    Thanks,V

    For those interested, I have a code change that will make your images resize during the upload process to the sizes you specify in settings. Here's what to do:

    1) Open ~/wp-content/plugins/nextgen-gallery/admin/functions.php in your favorite text/code editor.

    2) Search for "// now create thumbnails" should be line 192.

    3) Insert just above the following code:

    // now create resized images
    foreach($image_ids as $r) {
    nggAdmin::resize_image ( $r, 0, 0 );
    }

    4) Save.

    Cheers!

    Adam

  5. Valerio1789
    Member
    Posted 1 year ago #

    Ok,

    I did not know, but NGG does resize images, but only when you are
    logged in as Admin not as Editor.

    Any one has an advice?

    Thanks, V

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags