image-size

FB debugger says that my og:image should be larger, even though it is large

痞子三分冷 提交于 2019-11-29 05:27:15
Check out this result of debugging an article using Facebook debugger . It comes up with this warning: og:image should be larger. Provided og:image is not big enough. Please use an image that's at least 200x200 and preferably 1500x1500. But if you open the image displayed in the "og:image"-field below, you can clearly see that the image is big enough - 700x350 px. This results in Facebook picking random images when I'm publishing articles on my wall. Any idea why this happens? Edit: Could the problem be caused by my CMS redirecting the url of the image? Try to add this: <meta property="og

Reducing the size (as in area) of the graph generated by graphviz

北城余情 提交于 2019-11-28 15:38:33
Does anyone have any general tips for reducing the size of a graph generated by graphviz (size as in area, not as in file size). I have a fairly large graph (700 nodes). I set a smaller font size for each node, but it seems to only reduce the font size and not the actual node size. Are there any attributes to reduce the overall amount of blank space in the graph also? Thanks! doug In my experience using graphviz to render graphs of that size (~ 700 nodes), minimal trial-and-error adjustment to this combination of attribute settings--some structural, some purely aesthetic--for all three objects

Image size limitations in mobile safari?

会有一股神秘感。 提交于 2019-11-28 09:29:06
I'm working on an iOS app using PhoneGap. I ran into an annoying problem where some of my images weren't loading. Thinking it was a cache issue I played around swapping images. I finally discovered that the issue had to do with the height of my image. After a whole bunch of trial and error I discovered that an image taller than 7864px will not load in the iPad simulator or the iPad itself. It will load fine in Safari. It's not a file size limitation as these are only 45k in size and I'm loading images that are 700k in size elsewhere without a problem. Has anyone run into this? I can't find any

How to change WooCommerce thumbnail crop position?

拈花ヽ惹草 提交于 2019-11-28 01:52:36
问题 I'm trying to change WooCommerce thumbnail crop position. I found this code can help to change the size: add_action( 'init', 'yourtheme_woocommerce_image_dimensions', 1 ); /** * Define image sizes */ function yourtheme_woocommerce_image_dimensions() { $catalog = array( 'width' => '100', // px 'height' => '100', // px 'crop' => 0 ); // Image sizes update_option( 'shop_catalog_image_size', $catalog ); // Product category thumbs } I did some try like change crop 0 to array("center", "bottom")

Size() vs ls -la vs du -h which one is correct size?

核能气质少年 提交于 2019-11-27 16:09:30
I was compiling a custom kernel, and I wanted to test the size of the image file. These are the results: ls -la | grep vmlinux -rwxr-xr-x 1 root root 8167158 May 21 12:14 vmlinux du -h vmlinux 3.8M vmlinux size vmlinux text data bss dec hex filename 2221248 676148 544768 3442164 3485f4 vmlinux Since all of them show different sizes, which one is closest to the actual image size? Why are they different? They are all correct, they just show different sizes. ls shows size of the file (when you open and read it, that's how many bytes you will get) du shows actual disk usage which can be smaller

Get the displayed size of an image inside an ImageView

99封情书 提交于 2019-11-27 07:53:49
The code is simple: <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/cat"/> Notice the ImageView used fill_parent for width and height. The image cat is a small image and it will be zoomed in to fit the ImageView, and keep the width/height ratio at the same time. My question is how to get the displayed size of the image? I tried: imageView.getDrawable().getIntrinsicHeight() But which it the original height of the image cat . I tried: imageView.getDrawable().getBounds() But which returns Rect(0,0,0,0) . fsegaux the following will work: ih

How to add Images for different screen size from Assets.xcassets in Xcode 8?

Deadly 提交于 2019-11-27 06:31:43
问题 I create different sizes of background image for my Login screen. I refer to the apple link https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen/ But I'm not doing Launch Screen and I just want to add background to Login screen. I would like to know which is 1x , 2x and 3x ? Another problem is when I create Image Set, which size of image should be drag to which place. I have no idea of about that. Or do we need only 3 images (in universal row)? And then , how

Get the displayed size of an image inside an ImageView

三世轮回 提交于 2019-11-27 03:59:47
问题 The code is simple: <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/cat"/> Notice the ImageView used fill_parent for width and height. The image cat is a small image and it will be zoomed in to fit the ImageView, and keep the width/height ratio at the same time. My question is how to get the displayed size of the image? I tried: imageView.getDrawable().getIntrinsicHeight() But which it the original height of the image cat . I tried:

Image size for all screen devices

99封情书 提交于 2019-11-26 18:51:10
I have PSD , resolution of that is 1080X1920 , it contains a Dot image whose resolution is 22X22 . I have cropped that image and put it in my res folder. My question is how would Android know that the image is for 1080X1920 screen. It would open the same image bigger in small screen and smaller in 2560x1440 resolution. Is there a way other than putting different images for each screen sizes to tell android to use the image for specific screen size and scale for other screens use directly https://romannurik.github.io/AndroidAssetStudio/ For example, two devices that both report a screen size of

Android background image size in pixel

折月煮酒 提交于 2019-11-26 11:14:30
I would like to create a background image for different resolutions in Android. So I need the values (in pixel) for ldpi, mdpi, hdpi,xhdpi and xxhdpi. It is important that the image will not be blurred. I have already read the Documentation about multiple screen support but there are sizes in dp instead of pixel. there is no full list of screen resolutions, there are no fixed values in pixels for ldpi, mdpi, hdpi,xhdpi and xxhdpi. Every android device may have different resolution. If you want to fill all resolutions you will have to create too many images. If you put them in your app, it will