gallery

PHP Display images in columns

烂漫一生 提交于 2019-12-10 12:23:37
问题 I recently had an image gallery displayed nicely in four equally wide boxes, with the images as 100% width, clear both and height auto. This worked pretty well, except I had hundreds of images called on the page. I am trying to get the same effect, only using a short php script to call the images and display them. Here is a link to the gallery before And here is a link to the site which I am trying to achieve the 4 column fetch thing on. And the php code I currently have <?php $dir = 'images

OutOfMemoryError: bitmap size exceeds VM budget

假如想象 提交于 2019-12-10 11:15:23
问题 Sorry it seems like a repeated question, BUT I think I don't qualify to any of the recommendations already posted. I've a Gallery of maximum 20 images on my application. After playing a while flinging back and forth I'm getting OutOfMemoryError. The strange thing is that I don't hold any static references, and I've searched for possible memory leaks I can assure that I've not found one so far. Anyway, 20 images (PNG of 100KB on average) doesn't be like that much. And I've implemented a view

Using android camera intent, getting uri, and then using uri

血红的双手。 提交于 2019-12-09 23:34:00
问题 I have a folowing code: public void take_picture(View view) { Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(cameraIntent, CAMERA_REQUEST); } protected void onActivityResult(int requestCode, int resultCode, Intent data) { ImageView slikaa = (ImageView)this.findViewById(R.id.slikaa); if ((requestCode == CAMERA_REQUEST)&& (resultCode == Activity.RESULT_OK)) { Bitmap photo = (Bitmap) data.getExtras().get("data"); slikaa.setImageBitmap

How to rotate an image in a Gallery view

妖精的绣舞 提交于 2019-12-09 22:01:11
问题 This is a simple problem, but I wonder if it has a non-expensive solution. I have a gallery view which loads images from memory, either SD card or resources. Their size is 480x800, so the code samples them down and show as thumbnails in a Gallery View. All works fine, kind of... Some images are landscape while some portrait. The gallery’s imageview layout shows them all as landscape thus all portrait images look badly stretched! Since these images are abstract drawings I would like to rotate

Mark or highlight files in Visual Studios Solution Explorer

偶尔善良 提交于 2019-12-09 15:29:18
问题 is there an Add-In which allows me to tag or mark files in Visual Studio and then these files are visual highlighted (eg. different background color) ? I searched the Visual Studio Gallery but didn't find anything. Thanks! 回答1: I found the extension Visual Studio Tags on codeplex that can do what we need, but there's not (yet) visual support (ie, diferent colors in solution explorer). 回答2: To highlight only the active (open and viewed) item in the solution explorer (without any add-ins): Go

How to display fancybox title only on image hover

落花浮王杯 提交于 2019-12-09 01:45:02
问题 I'm using the Fancybox plugin for an image gallery, and I want to display the image titles only when the user hovers over the image. I cannot figure out what part of the code to modify in order to accomplish this. I've tried editing the CSS by adding a :hover state to the following: .fancybox-title-over-wrap { } and I've even tried playing with the CSS visibility settings here: .fancybox-opened .fancybox-title { } However, I've had no luck. Must I change something within the actual JS file?

CSS clip property - is there an alternative for cropping images?

纵然是瞬间 提交于 2019-12-08 21:42:43
I have an image gallery and I want the thumbnails to be cropped at 150px x 150px. The images aren't square - they are rectangular and all different sizes, so I can't set the width and height to 150px because the images will be all squashed and distorted. I'm wondering what other methods there are to do cropping for thumbnails apart from the CSS clip property. Are there any other CSS solutions or perhaps jQuery scripts? You can use negative margins to achieve this. DEMO <p class="crop"> <a href="http://templatica.com" title="Css Templates"> <img src="http://blogs.sundaymercury.net/weirdscience

Save Image in Gallery

不问归期 提交于 2019-12-08 18:24:50
问题 This is my code and I want the save image button to simply save the image to the gallery. package com.nk_apps.hip.hop.lyric.wallpapers; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.ImageView; public class Wallpapers extends Activity implements OnClickListener { } ImageView display; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto

Memory-Leaks Image-Gallery Android - How can other applications handle it?

江枫思渺然 提交于 2019-12-08 18:21:22
i'm trying to implement a image gallery, which should show ~ 5-15 smaller images and one "current selected" bigger image. It looks like: http://www.mobisoftinfotech.com/blog/wp-content/uploads/2012/06/galleryDemo.png I've looked up many sources and now decided to use a bitmap-cache (lru-cache) (thanks to a person from this forum!). I don't get memory-leaks at the moment, but i'm not happy with this solution because everytime i scroll, some images are removed from the cache and i've to reload them... so the user has to wait for reloading images... It's really annoying to wait 0.5 - 1 second

UIImagePickerController crashes in iPad

不打扰是莪最后的温柔 提交于 2019-12-08 15:40:54
问题 -(IBAction)selectPressed:(id)sender { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; [self presentModalViewController:picker animated:YES]; [picker release]; } I am testing this code on iPad and iPhone simulators. In the iPhone simulator (and on real iPhones too) it's ok - gallery appears. But on the iPad simulator (I don't have a device), it crashes. Any ideas why? 回答1: