Title: Exclude for some plugins
Last modified: December 14, 2018

---

# Exclude for some plugins

 *  Resolved [mastercavid](https://wordpress.org/support/users/mastercavid/)
 * (@mastercavid)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/exclude-for-some-plugins/)
 * Hi. I set 1000px with for my images. But is not good for sliders. Can I exclude
   this function for slider revolution or another slider plugin?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [ShortPixel](https://wordpress.org/support/users/shortpixel/)
 * (@shortpixel)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/exclude-for-some-plugins/#post-10992789)
 * Hi,
    thank you for using our plugin first of all! 🙂
 * There isn’t a direct way to exclude some images from being resized but there 
   is a workaround I can think of: just deactivate RIAU plugin before uploading 
   the images for the slider and then activate it again. This way the images you
   upload for the slider won’t be resized.
 * Best regards,
    Alex
 *  Thread Starter [mastercavid](https://wordpress.org/support/users/mastercavid/)
 * (@mastercavid)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/exclude-for-some-plugins/#post-11083773)
 * I think we can do it this method.
 * For example slider revolution pages links begin with this url
 * [https://example.com/wp-admin/admin.php?page=revslider&&#8230](https://example.com/wp-admin/admin.php?page=revslider&&#8230);
 * We can make some logic If slug is contain revslider or another things, disable
   resize image plugin.
 * But I am not developer. Can you help me?
 *  Thread Starter [mastercavid](https://wordpress.org/support/users/mastercavid/)
 * (@mastercavid)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/exclude-for-some-plugins/#post-11086116)
 * I found this alternative method:
 *     ```
       $url = $_SERVER["REQUEST_URI"];
   
       $isItSlide = strpos($url, 'revslider');
       $isItBlog = strpos($url, 'post.php');
   
       if ($isItSlide!==false) {
       	deactivate_plugins( '/resize-image-after-upload/resize-image-after-upload.php' );
       }
   
       if ($isItBlog!==false) {
       	activate_plugins( '/resize-image-after-upload/resize-image-after-upload.php' );
       }
       ```
   
 *  Plugin Author [ShortPixel](https://wordpress.org/support/users/shortpixel/)
 * (@shortpixel)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/exclude-for-some-plugins/#post-11090972)
 * Thank you for sharing your solution! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Exclude for some plugins’ is closed to new replies.

 * ![](https://ps.w.org/resize-image-after-upload/assets/icon-256x256.png?rev=1940740)
 * [Resize Image After Upload](https://wordpress.org/plugins/resize-image-after-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/resize-image-after-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/resize-image-after-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/resize-image-after-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/resize-image-after-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/resize-image-after-upload/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [ShortPixel](https://wordpress.org/support/users/shortpixel/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/exclude-for-some-plugins/#post-11090972)
 * Status: resolved