WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Wapple Architect Mobile Plugin for WordPress] Small images scaled up? (5 posts)

  1. Jakets
    Member
    Posted 4 years ago #

    Is there a way to not have small images scaled up? As it is large images are scaled to fit and images smaller all scale up to fit. This looks very odd often as I use a lot of thumbnail sized images on some of my posts. Otherwise I am very satisfied with this mobile plugin. :)

    http://wordpress.org/extend/plugins/wapple-architect/

  2. rgubby
    Member
    Posted 4 years ago #

    You can - but not by default. If you have a look in the admin/globalfunctions.php file - on line 24 there is an array of classes that thumbnails can have that mean they don't get scaled.

    If you let me know what class your thumbnails have though, I'll add it into the core code so when you get an update it'll all be ok.

    Thanks,
    Rich

  3. Jakets
    Member
    Posted 4 years ago #

    Hmm, I found it.

    $architectNoScaleImages = array('wp-smiley', 'sociable-hovers', 'rating_title', 'icon', 'rating', 'podcasticon', 'site-icon', 'sociable', 'sociablefirst');

    I'm not sure what to say the class is. Its just a regular image that is small. I'm not uploading a large image and then using the WP thumbnail. I'm just uploading small images. Can't you just make large images scale to fit? I have tried almost every mobile plugin and none that I remember do what this one does with small images.

    Let me know how to find the class as I don't see anything special on any of my images. This is a normal smaller one:

    [caption id="attachment_2514" align="aligncenter" width="135" caption="Fancy Topiary"]<img class="size-full wp-image-2514 " title="fancytopiary_gift" src="http://farmvillefanatic.com/blog/wp-content/uploads/2010/03/fancytopiary_gift.png" alt="" width="135" height="157" />[/caption]

    Thanks.

  4. Jakets
    Member
    Posted 4 years ago #

    Also is there anything I can do to make this work with NoSpamNX? It seems that all comments from the mobile theme are automatically kicked to spam when this plugin is enabled.

    Thanks.

  5. rgubby
    Member
    Posted 4 years ago #

    Hi - i've added some code in so as not to scale small images.

    The problem with your 135 pixel wide image is that it may still be too big for some handsets. New ones will be fine with it, older ones may not be.

    What you could do, is add something to that line so that it doesn't scale images with a certain class, and then apply that class to your image - then they wouldn't scale.

    With regards to nospamnx - I'll check it out and see what I can do.

Topic Closed

This topic has been closed to new replies.

About this Topic