Title: Nextgen 2.0   Imsanity
Last modified: August 22, 2016

---

# Nextgen 2.0 Imsanity

 *  [Scholarty](https://wordpress.org/support/users/scholarty/)
 * (@scholarty)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/nextgen-20-imsanity/)
 * I was wondering how to get Imsanity to work with NextGen Gallery? I have users
   that are able to upload their own photos and it is over the max dimensions I 
   set but Imsanity does not seem to touch the files within the NextGen Galleries.
 * Any advice?
 * Thanks
 * [https://wordpress.org/plugins/imsanity/](https://wordpress.org/plugins/imsanity/)

Viewing 1 replies (of 1 total)

 *  [Jason](https://wordpress.org/support/users/verysimple/)
 * (@verysimple)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/nextgen-20-imsanity/#post-5343467)
 * NextGen has their own upload functionality outside of WordPress’s API so there’s
   no way to support it without customizing code specifically for their plugin (
   if that is even possible). The best solution would be to ask the NextGen authors
   to add the following code to the end of their upload function:
 *     ```
       // see wp-admin/includes/file.php function wp_handle_upload for info on what $struct should contain
       return apply_filters( 'wp_handle_upload', $struct, 'upload' );
       ```
   
 * If they would add that, then NextGen would support all image plugins, including
   Imsanity.

Viewing 1 replies (of 1 total)

The topic ‘Nextgen 2.0 Imsanity’ is closed to new replies.

 * ![](https://ps.w.org/imsanity/assets/icon.svg?rev=2420360)
 * [Imsanity](https://wordpress.org/plugins/imsanity/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/imsanity/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/imsanity/)
 * [Active Topics](https://wordpress.org/support/plugin/imsanity/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/imsanity/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/imsanity/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jason](https://wordpress.org/support/users/verysimple/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/nextgen-20-imsanity/#post-5343467)
 * Status: not resolved