• Resolved Rongo

    (@rongo)


    While this plugin is a fantastic time saver, there is one issue I am having that I cannot figure out.

    I want to use the original image sizes in the feed, which are 1200 pixels on the longest side. I can use 999, which basically shows the original image, but scales it down (hardcoded width and height) to 999px on the longest side.

    If I use 0, then it uses the thumbnail dimensions as set in the WP media manager, and then stretches it/scales it to full size.

    Thus, my question is, what is the option in this plugin to NOT scale an image and force it to use the original image size(s) in the feed?

    https://www.ads-software.com/plugins/rss-image-feed/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author tepelstreel

    (@tepelstreel)

    I’m sorry, there is no possibility to have an image larger than 999px the widest site at the moment.

    It’s just in the code that it won’t allow you to go bigger than that since when it was created, most feed readers anyway wouldn’t allow you to use an image, wider than 300px.

    I guess, in the next update I’ll have to let go that limitation.

    Thread Starter Rongo

    (@rongo)

    @tepelstreel: thanks for the reply. Perhjaps a feature request could be an admin option to “Use Original Image Size: yes/no” and if no, set the size you prefer.

    Alternatively, perhaps using 0 as the maximum size could be the toggle.

    We use feeds with original sizes to populate some of our hub sites, which can then import the full size image and create the thumbs from it according to that specific site’s media settings. Thus, we’re not using it for use with feed readers, but rather to populate our other sites with specific updates.

    Your plugin is actually such a useful plugin that it is one we’d certainly pay for. Insofar as plugins go, some are just worthy of being premium, and this is one of them.

    Thanks again for the reply.

    Thread Starter Rongo

    (@rongo)

    @tepelstreel: thanks for the tip. It was indeed an easy enough edit to allow for larger images.

    For anyone in need of the ability to use larger images, it’s a pretty easy fix:

    1. In the plugin folder, go into the class-lib sub-folder
    2. Open the file RIF_AdminClass.php in a plain text editor
    3. On line number 232 (or near there), locate this code:
      if($newinput['image_size'] > 999) :
    4. Replace 999 with whatever you want as your longest side (for example, 1600)
    5. Save it and upload it

    That’s it. Now your featured images will scale anything larger than 1600 down to 1600. And anything 1600 or less will be full original size.

    Please NOTE, as this is a code edit, anytime you update this plugin, you will need to re-edit the file.

    @tepelstreel: perhaps as a suggestion, make the 999 a variable, %featured_size%, that can be entered into a field on the plugin’s settings page. This would permit anyone to use whatever sizes they needed, while still providing a default of 200 for those that do not.

    Plugin Author tepelstreel

    (@tepelstreel)

    Thanks Rongo,

    for digging into the matter. As mentioned earlier, I’ll let go of the limitation in the next update which is about to come soon as I’ll have to make some changes to the image class as well.

    Cheers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can This Plugin Use the Original Image Size?’ is closed to new replies.