Support » Plugin: PowerPress Podcasting plugin by Blubrry » Remove Image Attributes

  • OH MY GRAVY (OMG), this is beginning to get annoying. I never had this issue with categories before and regret ever removing them.

    I’m in the process of setting up category podcasts for submission to iTunes. Once accepted you send a request to put them all under one umbrella; in this case partyfavorz.com. Easy peasy.

    What’s changed since the last time I did this in 2015 is that WordPress is now forcing image attributes, most likely as a Google requirement. So my 3000×3000 kick-butt images I’ve created for each category are displaying as 952×952.

    When I go to validate each feed prior to submission; everything looks great except that iTunes is defaulting to my standard logo that I use for the main site because the attributes generated by WordPress override the actual image size that does not meet iTunes requirements. I’m a reasonably smart guy and can figure this out.

    I research the issue online and find a plethora of posts about this issue. The general consensus is to put this code:

    <?php
    /* Write your awesome functions below */
    
    function remove_img_attributes( $html ) {
    $html = preg_replace( '/(width|height)="\d*"\s/', "", $html );
    return $html;
    }
    add_filter( 'post_thumbnail_html', 'remove_img_attributes', 10 );
    add_filter( 'image_send_to_editor', 'remove_img_attributes', 10 );

    into your functions.php file. As with most newer themes, you have to do this in the child theme. No matter if I use my theme generated child theme or one created by the plugin Childify, it has never worked. Nevertheless, I tried.

    Sure enough, I switch to the Customizr Pro Child theme and add the code then re-upload one test image and it still doesn’t work. I delete the image, remove my caching plugin, clear my browser and then reboot my computer and do it again. Still doesn’t work.

    What to do? I thought I might upload the images to Google Sites and link them back that way but the same issue persists with those freaking attributes added to the images.

    I guess I’m not looking so smart after all. Any other suggestions for removing the images attributes upon uploading would be welcome.

Viewing 5 replies - 16 through 20 (of 20 total)
  • Angelo, you’re killing me here. The orangeish logo you’re referencing is my main site logo. It’s used for partyfavorz.com and for my main RSS feed in a smaller size.

    I have created individual logos for each category listing to separate each genre from the main site. When you click on that link to my iTunes page, you’ll see all the other categories listed down the side have the same logo as my main site. They are all supposed to be different and there is nothing to differentiate them from each other.

    Sadly, when I upload the original logo for each category, it defaults back to my main site logo and will not allow it even though they are 3000×3000 meeting the specifications set forth by iTunes. Equally, it overrides the category description and title even though I’ve filled them in since it’s not picking them up for each individual category.

    Here is one category: Year in Dance Category

    In this example for ‘Year in Dance’ it should have this logo and the title should be Year in Dance – Party Favorz not Year in Dance – Party Favorz | LIVE WORK PLAY DANCE, which it is pulling from Yoast SEO and the description should be: “Formerly called “Time Capsule,” the Year in Dance Channel compiles the BIGGEST dance tunes of each year. This is a MUST have for your collection.” NOT “The best DANCE, Circuit, Funky & Classic House podcast on the planet” which is for my main site.

    I give up.

    Plugin Author Angelo Mandato

    (@amandato)

    Can you email me the category image then? cio [at] rawvoice dot com

    I can test with the image in my test environment. It may be that the image is too big in bytes, iTunes wants compressed jpg images, they haven’t documented it yet but at some point they are going to set a file size limit of about 500K as well.

    If PowerPress cannot save the image to the /uploads/powerpress/ folder then that may be the issue. Make sure your server has write access to the wp-content/uploads/powerpress/

    If that’s the case then they are too large. I can get them down in size to 500kbs but that defeats the purpose of making them larger for 4K devices. Image quality is going to suck.

    That also does not resolve another issue. Page Title and Description are not pulling from the actual category; they are pulling from the main feed. Even if I fill in the information myself it still won’t accept it; even after clearing my browser.

    Let me try the image sizing first.

    BOOM! THERE IT IS!!! Changed PowerPress to 6.3 and category artwork, description and title all updated in the feed as I thought it would.

    This is a 7.0 issue. I’ll wait for iTunes to update (usually less than 24 hours). I’m also updating all of the artwork with >500k versions as the ones I had were pretty big.

    Regardless, that wasn’t the issue. Your feed has to show it first for iTunes to reject it and my logo is a pretty hefty size as well which it took.

    My hope is that once it gets picked up by iTunes it will float over to the updated PowerPress. We’ll see. For now, it’s time to celebrate.

    Here is the correct feed information for the one I posted above. The changes are obvious. https://partyfavorz.com/category/tributes/feed/

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Remove Image Attributes’ is closed to new replies.