WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: kama-thumbnail (Used by 7 domains)

Kama Thumbnail

👤 Timur Kamaev 📦 v3.5.1 🔗 Plugin Homepage

Convenient way to create post thumbnails on the fly without server overload.

The best alternative to scripts like “thumbnail.php”.

Supports Multisite.

Usage

The plugin for developers firstly, because it don’t do anything after install. In order to the plugin begin to work, you need use one of plugin function in your theme or plugin. Example:


Using the code in the loop you will get ready thumbnail IMG tag. Plugin takes post thumbnail image or find first image in post content, resize it and create cache. Also creates custom field for the post with URL to original image. In simple words it cache all routine and in next page loads just take cache result.

You can make thumbs from custom URL, like this:

The URL_TO_IMG must be from local server: by default, plugin don’t work with external images, because of security. But you can set allowed hosts on settings page: Settings > Media.

All plugin functions:

// return thumb url URL
echo kama_thumb_src( $args, $src );

// return thumb IMG tag
echo kama_thumb_img( $args, $src );

// return thumb IMG tag wraped with . A link of A will leads to original image.
echo kama_thumb_a_img( $args, $src );

// to get image width or height after thumb creation
echo kama_thumb( $optname );
// ex:
echo '';

Parameters:

  • $args (array/string)
    Arguments to create thumb. Accepts:

    • w | width
      (int) desired width.

    • h | height
      (int) desired height.

      if parameters w and h not set, both of them became 100 – square thumb 100х100 px.

    • notcrop
      (isset) if set crop parameter become false – crop=false.

    • crop
      (isset) Control image cropping. By default always true.

      To disable cropping set here false/0/no/none or set parameter 'notcrop'. Then image will not be cropped and will be created as small copy of original image by sizes settings of one side: width or height – here plugin select the smallest suitable side. So one side will be as it set in w or h and another side will be smaller then w or h.

      Cropping position

      Also, you can specify string: 'top', 'bottom', 'left', 'right' or 'center' and any other combinations of this strings glued with /. Ex: 'right/bottom'. All this will set cropping area:

      • 'left', 'right' – horizontal side (w)
      • 'top', 'bottom' – vertical side (h)
      • 'center' – for both sides (w and h)

      When only one value is set, the other will be by default. By default: 'center/center'.

      Examples:

      // image will be reduced by height, and width will be cropped.
      // "right" means that right side of image will be shown and left side will be cut.
      kama_thumb_img('w=200 &h=400 &crop=right');
      
      // image will be redused by width, and height will be cropped.
      // "top" means that the top of the image will be shown and bottom side will be cut.
      kama_thumb_img('w=400 &h=200 &crop=top');
      
      // you can specify two side position at once, order doesn't matter
      kama_thumb_img('w=400 &h=200 &crop=top/right');
      

      Reduce image by specified side

      In order to get not cropped proportionally rediced image by specified side: by width or height. You need specify only width or only height, then other side will be reduced proportional. And no cropping will appear here.

      kama_thumb_img('w=200');
      

      So, width of our image will be 200, and height will be as it will…
      Теперь ширина всегда будет 200, а высота какая получится… And the picture will be always full, without cropping.

    • q | quality
      (int) jpg compression quality (Default 85. max.100)

    • stub_url
      (string) URL to no_photo image.

    • alt
      (str) alt attr of img tag.

    • title
      (str) title attr of img tag.

    • class
      (str) class attr of img tag.

    • style
      (str) style attr of img tag.

    • attr
      (str) Allow to pass any attributes in IMG tag. String passes in IMG tag as it is, without escaping.

    • a_class
      (str) class attr of A tag.

    • a_style
      (str) style attr of A tag.

    • a_attr
      (str) Allow to pass any attributes in A tag. String passes in A tag as it is, without escaping.

    • no_stub
      (isset) don’t show picture stub if there is no picture. Return empty string.

    • yes_stub
      (isset) show picture stub if global option in option disable stub showing, but we need it…

    • post_id | post
      (int|WP_Post) post ID. It needs when use function not from the loop. If pass the parameter plugin will exactly knows which post to process. Parametr ‘post’ added in ver 2.1.

    • attach_id
      (int) ID of wordpress attachment image. Also, you can set this parametr by pass attachment ID to ‘$src’ parament – second parametr of plugin functions: kama_thumb_img('h=200', 250) or kama_thumb_img('h=200 &attach_id=250')

    • allow
      (str) Which hosts are allowed. This option sets globally in plugin setting, but if you need allow hosts only for the function call, specify allow hosts here. Set ‘any’ to allow to make thumbs from any site (host).

  • $src
    (string) URL to any image. In this case plugin will not parse URL from post thumbnail/content/attachments.

    If parameters passes as array second argument $src can be passed in this array, with key: src или url или link или img:

        echo kama_thumb_img( array(
            'src' => 'http://yousite.com/IMAGE_URL.jpg',
            'w' => 150,
            'h' => 100,
        ) );
    

Notes

  1. You can pass $args as string or array:

        // string
        kama_thumb_img('w=200 &h=100 &alt=IMG NAME &class=aligncenter', 'IMG_URL');
    
        // array
        kama_thumb_img( array(
            'width'  => 200,
            'height' => 150,
            'class'  => 'alignleft'
            'src'    => ''
        ) );
    
  2. You can set only one side: width | height, then other side became proportional.

  3. src parameter or second function argument is for cases when you need create thumb from any image not image of WordPress post.
  4. For test is there image for post, use this code:

        if( ! kama_thumb_img('w=150&h=150&no_stub') )
            echo 'NO img';
    

Examples

#1 Get Thumb

In the loop where you need the thumb 150х100:


Result:


#2 Not show stub image


#3 Get just thumb URL


Result: /wp-content/cache/thumb/ec799941f_100x80.png

This url you can use like:

' alt=''>

#4 kama_thumb_a_img() function


Result:


#5 Thumb of any image URL

Pass arguments as array:

 'http://yousite.com/IMAGE_URL.jpg',
        'w' => 150,
        'h' => 100,
    ) );
?>

Pass arguments as string:


When parameters passes as string and “src” parameter has additional query args (“src=$src &w=200” where $src = http://site.com/img.jpg?foo&foo2=foo3) it might be confuse. That’s why “src” parameter must passes as second function argument, when parameters passes as string (not array).

#6 Parameter post_id

Get thumb of post ID=50:


I don’t need plugin

This plugin can be easily used not as a plugin, but as a simple php file.

If you are themes developer, and need all it functionality, but you need to install the plugin as the part of your theme, this short instruction for you:

  1. Create folder in your theme, let it be ‘thumbmaker’ – it is for convenience.
  2. Download the plugin and copy the files: class.Kama_Make_Thumb.php and no_photo.jpg to the folder you just create.
  3. Include class.Kama_Make_Thumb.php file into theme functions.php, like this:
    require ‘thumbmaker/class.Kama_Make_Thumb.php’;
  4. Bingo! Use functions: kama_thumb_*() in your theme code.
  5. If necessary, open class.Kama_Make_Thumb.php and edit options (at the top of the file): cache folder URL/PATH, custom field name etc.
  • Conditions of Use – mention of this plugin in describing of your theme.
DomainExposuresHeadersLast Checked
s*o*a*a*o*.ru F 2026-06-09 00:02:25
a*t*n*v*.com (WP 6.8.5) F 2026-06-02 20:45:07
z*p*a*a*a*m*c*i*o*.ru (WP 6.9.4) F 2026-06-01 20:51:51
k*d*t*p*c*.com F 2026-05-27 21:31:26
p*s*n.com (WP 5.9.13) ⚠️ F 2026-05-09 17:51:37
p*o*o*o*.com F 2026-05-07 13:37:47
s*o*i*i*a*a*i*o.com (WP 6.5.5) F 2026-05-07 01:47:18
c*u*l*c*n*e*.ru D 2026-05-03 14:17:47

Top 50 Plugins

Plugin Count
elementor 1,796,741
contact-form-7 1,766,546
elementor-pro 1,047,260
woocommerce 815,042
revslider 616,486
jetpack 466,278
js_composer 431,474
wp-rocket 333,316
essential-addons-for-elementor-lite 293,145
gravityforms 266,592
complianz-gdpr 255,931
cookie-law-info 230,628
instagram-feed 227,636
google-site-kit 221,594
sitepress-multilingual-cms 220,708
google-analytics-for-wordpress 213,613
header-footer-elementor 209,754
elementskit-lite 206,554
bluehost-wordpress-plugin 190,677
gutenberg 162,083
gutenberg-core 159,164
cookie-notice 150,869
the-events-calendar 131,142
litespeed-cache 130,431
wpforms-lite 129,343
gtranslate 127,652
astra-sites 119,407
popup-maker 115,819
woocommerce-payments 112,815
tablepress 108,825
coblocks 99,308
honeypot 97,125
astra-addon 95,116
wp-smushit 93,343
duracelltomi-google-tag-manager 93,328
all-in-one-seo-pack 93,096
LayerSlider 91,463
bb-plugin 90,683
premium-addons-for-elementor 86,707
megamenu 86,279
akismet 85,938
cleantalk-spam-protect 83,757
mailchimp-for-wp 83,585
woocommerce-gateway-stripe 82,978
ml-slider 80,826
fusion-builder 79,481
borlabs-cookie 79,231
ewww-image-optimizer 78,903
wp-pagenavi 78,615
formidable 77,926

Top 50 Themes

Theme Count
hello-elementor 614,199
Divi 509,746
astra 422,824
flatsome 132,849
Avada 124,112
generatepress 119,667
pub 109,731
oceanwp 83,251
kadence 78,264
enfold 71,684
salient 66,622
twentytwentyfour 58,741
h4 56,268
twentyseventeen 56,055
bb-theme 55,201
cocoon-master 52,071
betheme 51,693
blocksy 50,524
dt-the7 46,049
twentytwentyfive 43,672
neve 39,246
Avada-Child-Theme 37,532
gox 33,400
woodmart 33,232
bridge 32,813
twentytwentyone 32,058
lightning 31,414
twentytwenty 29,980
swell 28,566
Impreza 26,363
bricks 25,959
twentytwentythree 23,984
Newspaper 23,408
sydney 23,318
voxel 22,439
twentytwentytwo 19,960
epik-redesign 19,270
uncode 19,069
kubio 18,843
sinatra 18,674
twentysixteen 18,163
storefront 17,841
pro 17,833
Total 14,695
extendable 14,576
yith-wonder 14,035
hello-theme-child-master 13,314
themify-ultra 12,964
factory-templates-4 12,913
yootheme 12,910