Title: Image sizing
Last modified: August 24, 2016

---

# Image sizing

 *  [thaynejo](https://wordpress.org/support/users/thaynejo/)
 * (@thaynejo)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/image-sizing-7/)
 * I just upgraded both Coupon Creator and WordPress, so I am not certain what caused
   the issue, but new coupons are being re-sized to the dimensions for a medium 
   image as they should be (300 x 300) whereas old coupons are not being re-sized
   any longer. I have been through the code, but have found nothing that would prevent
   the images from going off the specified dimensions.
 * [https://wordpress.org/plugins/coupon-creator/](https://wordpress.org/plugins/coupon-creator/)

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

 *  Thread Starter [thaynejo](https://wordpress.org/support/users/thaynejo/)
 * (@thaynejo)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/image-sizing-7/#post-5998437)
 * You can view the issue here: [http://*************.com/all-coupons/](http://*************.com/all-coupons/)(
   removed because solution found)
 * It seems that the ‘single_coupon’ image size is only being applied to one of 
   the coupons (the second one). Because of that, the correct url is not being applied
   to the remainder.
 * Not sure what to do on this as it is within the loop, and they should all be 
   generating the same way.
 *  Thread Starter [thaynejo](https://wordpress.org/support/users/thaynejo/)
 * (@thaynejo)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/image-sizing-7/#post-5998450)
 * Ok. So I found the issue. The problem is that the single-coupon image size does
   not exist on the previously uploaded images. My guess is that that was something
   that was removed in the upgrade from 1.80 while getting ready for pro. Either
   that or it was not a concern.
 * I will need to manually go in an add it to the serialized array in order to get
   it working again unless you have another way to get the size added?
 * I have already had to add a script to update the expiration value from ‘on’ to
   1 when admin is loaded so that that feature is no longer broken during the upgrade.
   Making this change should not be too big a deal.
 * Thanks.
 *  Plugin Author [Brian](https://wordpress.org/support/users/brianjessee/)
 * (@brianjessee)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/image-sizing-7/#post-5998669)
 * Hi,
 * Thanks for using the Coupon Creator, sorry for the late reply and the issues 
   here.
 * The image size single_coupon has been with the Coupon Creator since the start.
   I guess when I switched to using PHP classes in 1.70 that it broke in that version
   from my testing now I believe that is working.
 * Also, sorry for the oversight on the Ignore Expiration field value. I thought
   I had accounted for that, but it looks like I missed it when changing from 1.70
   to 1.80.
 * Let me know if you need any more help on those bugs or anything else and I will
   be glad to help out.
 * Thanks
 *  Thread Starter [thaynejo](https://wordpress.org/support/users/thaynejo/)
 * (@thaynejo)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/image-sizing-7/#post-5998717)
 * Not sure what happened with the single_image size missing then. This all existed
   prior to me. It is possible then that those images were uploaded before coupon
   creator was installed. Though why it was showing a smaller size on the previous
   versions, I am still stumped.
 * No problem on the Ignore Expiration field value. I am just glad I figured it 
   out. With 240+ sites all running the plugin, it was going to be a headache otherwise.
   lol.
 * I appreciate the quick response and the offer to help. In the way of full disclosure
   as well, I did create a secondary plugin that allows for the Google UA code to
   be inserted in to the coupon print page. I realize this is part of the Pro version,
   so I am not releasing it to anyone else. We would look into upgrading the version
   instead, but the price is a bit prohibitive for us with the number of sites we
   have (and are growing at more than 10 per month).
 *  Plugin Author [Brian](https://wordpress.org/support/users/brianjessee/)
 * (@brianjessee)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/image-sizing-7/#post-5998719)
 * Ok sounds good. No worries about the Analytics coding I did try to design it 
   so people could start doing that with hooks.
 * Also, maybe we can work a deal for an unlimited license. If you like, please 
   contact me using the form on this page:
 * [https://couponcreatorplugin.com/contact/](https://couponcreatorplugin.com/contact/)
 * Thanks for using the Coupon Creator.

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

The topic ‘Image sizing’ is closed to new replies.

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

 * 5 replies
 * 2 participants
 * Last reply from: [Brian](https://wordpress.org/support/users/brianjessee/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/image-sizing-7/#post-5998719)
 * Status: not resolved