image-resizing

Tiling a UIImageView using resizeableImageWithCapInsets:resizingMode?

十年热恋 提交于 2020-01-23 20:02:05
问题 I'm using the following code to try to create a tiled image with cap insets, and seeing the image below as the results in the simulator. My source image is 145x83 pixels in size, and shown here too. What am I doing wrong? SOURCE IMAGE: RESULTS IN SIMULATOR: CODE: - (void)viewDidLoad { [super viewDidLoad]; UIImage *cloudImage = [UIImage imageNamed: @"cloud.png"]; [cloudImage resizableImageWithCapInsets: UIEdgeInsetsMake(10, 10, 10, 10) resizingMode: UIImageResizingModeTile]; UIImageView

Tiling a UIImageView using resizeableImageWithCapInsets:resizingMode?

核能气质少年 提交于 2020-01-23 20:01:59
问题 I'm using the following code to try to create a tiled image with cap insets, and seeing the image below as the results in the simulator. My source image is 145x83 pixels in size, and shown here too. What am I doing wrong? SOURCE IMAGE: RESULTS IN SIMULATOR: CODE: - (void)viewDidLoad { [super viewDidLoad]; UIImage *cloudImage = [UIImage imageNamed: @"cloud.png"]; [cloudImage resizableImageWithCapInsets: UIEdgeInsetsMake(10, 10, 10, 10) resizingMode: UIImageResizingModeTile]; UIImageView

PHP - Create Thumbnail & maintaining aspect ratio

做~自己de王妃 提交于 2020-01-21 02:18:48
问题 EDIT: This can be easily done in CSS, I didn't know CSS much at the time of writing this I have created a thumbnail creator using PHP. The thumbnails generated should be of the same size. But the problem is the use of uploads images having different aspect ratio like landscape or portrait the thumbnail becomes ugly. So I created the picture above for clarification. Whatever be the uploaded image, it will be put into a rectangle image. So the aspect ratio doesn't change and thumbnails will be

How to specify image size in HTML Doxygen?

做~自己de王妃 提交于 2020-01-20 03:10:08
问题 I am trying to manually specify the image size in the HTML generated by Doxygen. However, as I read in the documentation, this can only happen if using LaTeX output. Anybody here knows any workaround? As an example, I would like to do something like this: \image html example.png "Caption" width=10px Thank you! 回答1: Put this in the CSS file "Doc/doxygen_html_style.css": div.image img[src="example.png"]{ width:100px; } And set the Doxygen config variable *HTML_EXTRA_STYLESHEET* to "Doc/doxygen

CSS Img resize transition time only on hover

天涯浪子 提交于 2020-01-15 09:24:37
问题 I'm having an issue with an animation on one of my images. I want the image to resize on hover with a transition time (and then have a transition time back to the original size when the mouse moves off the image) but then when i resize the window and the image resizes accordingly, it resizes with the transition time . Does anyone know a way to get around this? <div class="column"> <a href="-----.html"> <img src="-----.jpg"> </a> </div> .column img{ filter: brightness(0.8); transition: 0.6s

CSS Img resize transition time only on hover

爱⌒轻易说出口 提交于 2020-01-15 09:24:09
问题 I'm having an issue with an animation on one of my images. I want the image to resize on hover with a transition time (and then have a transition time back to the original size when the mouse moves off the image) but then when i resize the window and the image resizes accordingly, it resizes with the transition time . Does anyone know a way to get around this? <div class="column"> <a href="-----.html"> <img src="-----.jpg"> </a> </div> .column img{ filter: brightness(0.8); transition: 0.6s

Batch resize images and output images to new folder with ImageMagick

☆樱花仙子☆ 提交于 2020-01-11 15:51:11
问题 Current image folder path: public_html/images/thumbs Output image folder path: public_html/images/new-thumbs I have 10 video thumbs per video in current folder, named of image thumbs: 1-1.jpg 1-2.jpg 1-3.jpg 1-4.jpg 1-5.jpg (Resize) 1-6.jpg 1-7.jpg 1-8.jpg 1-9.jpg 1-10.jpg 2-1.jpg 2-2.jpg 2-3.jpg 2-4.jpg 2-5.jpg (Resize) 2-6.jpg 2-7.jpg 2-8.jpg 2-9.jpg 2-10.jpg I want to resize all 5th images(*-5.jpg) to the new folder. I've tried below command but no luck: mogrify -path public_html/images

Manipulate an image without deleting its EXIF data

一个人想着一个人 提交于 2020-01-09 09:09:42
问题 Using imageIO, I usually have the problem of transforming an image file, and after overwriting it, it loses all of its EXIF data. Is there any way to preserve it without first extracting it, caching it, and then resetting it? 回答1: ImageIO do have this functionality itself, but instead of ImageIO.read you will need to use ImageReader: ImageReader reader = ImageIO.getImageReadersBySuffix("jpg").next(); (you may want to also check if such reader exists). Then you need to set the input: reader

change resolution and size of image with cocoa/osx/swift (no mobile apps)

主宰稳场 提交于 2020-01-07 00:47:53
问题 I try to change the size and the resolution of an image programmatically, afterwards I save this image. The imagesize in the imageView is changing, but when I look at my file "file3.png" it always has the original resolution of 640x1142. I googled around but can't find a solution. I try to redraw the image. But maybe it's the wrong strategy. thanks @IBAction func pickOneImageBtn(sender: AnyObject) { //load image from path pickedImage.image = loadImageFromPath(fileInDocumentsDirectory(

change resolution and size of image with cocoa/osx/swift (no mobile apps)

蹲街弑〆低调 提交于 2020-01-07 00:47:05
问题 I try to change the size and the resolution of an image programmatically, afterwards I save this image. The imagesize in the imageView is changing, but when I look at my file "file3.png" it always has the original resolution of 640x1142. I googled around but can't find a solution. I try to redraw the image. But maybe it's the wrong strategy. thanks @IBAction func pickOneImageBtn(sender: AnyObject) { //load image from path pickedImage.image = loadImageFromPath(fileInDocumentsDirectory(