gallery

Unpacking the update… Could not create directory. Wordpress

偶尔善良 提交于 2019-12-02 23:22:32
When I instal nextgen-gallery plugins. This error message appears Downloading update from https://downloads.wordpress.org/plugin/nextgen-gallery.zip… Unpacking the update… Could not create directory. How can I fix this problem ? skrilled This is a permissions issue. Ensure the directory is writable by apache. Plugins are unpacked into the wp-content/plugins directory, so I would first attempt writing to the directory as apache: sudo -u apache touch /path/to/wp-content/plugins/test.txt Set permissions accordingly to correct the issue. You can read about permissions here: http://www.linux.com

Centering floating list items <li> inside a div or their <ul>

半城伤御伤魂 提交于 2019-12-02 22:52:02
HTML: <div class="imgcontainer"> <ul> <li><img src="1.jpg" alt="" /></li> <li><img src="2.jpg" alt="" /></li> ..... </ul> </div> I'm coding a simple gallery page by creating unordered list and each list item of it contains an image. ul li { float: left; } I set the width of the container as "max-width" so I can make possible to fit the list items (images) to the browser width.. meaning that they will be re-arranged when the browser window re-sized. .imgcontainer{ max-width: 750px; } Now the problem is those images or list items are not aligned to center, they are aligned to the left of

Gallery ImageAdapter convertView is always null

*爱你&永不变心* 提交于 2019-12-02 20:50:45
I am using a Gallery with an ImageAdapter to load it with ImageViews that pull images out of my resources. My problem is that the convertView that gets passed to the getView() method in my adapter is always null. This means that a new ImageView is created each and every time getView() is called. This leads to horrible preformance because the GC is constantly running to wipe away all of these created and no longer used ImageView's. This is apparently a known bug: Gallery's view cache is broken; never converts views. . My two preferred solutions are either 1. handle a cache of views in the

What's the best jQuery “click a thumbnail and change the main image” module?

旧街凉风 提交于 2019-12-02 19:41:20
Here's what I have (all generated dynamically, if that makes a difference) : A list of images A caption for each image A thumbnail for each image The page should load with one full-size image and all the thumbnails. When a user clicks a thumbnail, the full-size image shows that new image with its caption. If they click another thumbnail, the picture (and caption) change again. It's not very complex. I hacked together a solution a few months ago, but I need to do it again and I'm looking at this crappy code and thinking that there has to be a better way (and knowing jQuery, someone else has

Simplest Ajax Photo Gallery

浪尽此生 提交于 2019-12-02 18:59:50
问题 I don't think "simplest" is subjective. Looking for a hostable photo gallery that does nothing but show an image and provide "next image" and "previous image" but all without reloading the page. Obviously precaching would be nice too. PHP, Python, Ruby, or JS. 回答1: If you want simple, maybe something like this? <html> <body> <div> <img id="image"> </img> </div> <table> <tr> <td onclick="getImage("previous");">Previous</td> <td onclick="getImage("next");">Next</td> </tr> </table> <script type=

Open the default photo gallery app

江枫思渺然 提交于 2019-12-02 12:45:51
I want the gallery app to be launched in a separate window, not in my app. I also dont want to choose a picture, I just want to open the default gallery app. Some questions are very similiar to this one, but they all open the gallery not as a standalone app, always inside of the app which has called startActivity(intent); . see here . This is my app called SM2. inside, the default gallery app is visible, which is not the desired behaviour. The following code has no use if there is no package named 'com.android.gallery' on the phone: Intent launchIntent = getPackageManager()

Definitive Fix for Android's bug of duplicating photo on gallery when using the internal camera

限于喜欢 提交于 2019-12-02 11:11:21
问题 This is definitive fix for the Android's problem of duplicating a photo. Tested it on 2.3 (which has the bug), 4.x (which doesnt have the bug) and 5.x (which has the bug too). The problem is that the photo is saved in two formats: usually one is the timestamp.jpg, and the other one is the full_date_and_time.jpg; sometimes in the same folder, sometimes in different folders. For example, "1430910805600.jpg" and "2015-05-06 11.14.00.jpg". Worstly, one cannot be converted to the other. 回答1: The

Android Newly Taken Photo from custom camera does not appear in gallery (media store)

非 Y 不嫁゛ 提交于 2019-12-02 10:45:19
问题 in my app, i initially load all the images from the gallery, i.e. (MediaStore.Images.Media.EXTERNAL_CONTENT_URI) user can take picture via my app, but i have a custom camera, i.e. i do not use default phone camera to take pictures, i have my own surface view, i deal with Camera object directly, and handle the camera picture. and i save this image in a custom folder. i want the newly taken picture to appear in my gallery once user returns to my app problem: the newly taken picture does not

Is there a way to call notifyDataSetChanged() from the main activity for a custom adapter of an item inside another custom adapter?

萝らか妹 提交于 2019-12-02 10:25:22
I've being trying to solve this problem but I couldn't figure it out yet. In my layout have a listview with its custom adapter. Inside each view I have many objects stored in a static class called ViewHolder. One is a gallery with another custom adapter. My problem is that after I get an onActivityResult on my Activity. I need to send a notifyDataSetChanged() to my gallery adapter. If I do: ((BaseAdapter)list.getAdapter()).notifyDataSetChanged(); All the items inside the adapter are refreshed except the ones that have their own custom adapter. Now I thought maybe I thought maybe there is a way

Android play video in raw folder (launching gallery from intent)

依然范特西╮ 提交于 2019-12-02 09:20:59
So I know there are a lot of questions on this, but all seem to have the same answer and it's not what I'm looking for. I have a video in the raw folder in my project, and I can get it to play in my app with VideoView . However, I would like to take advantage of the gallery video player that all phones come with so the user can pause or scroll through the video. When I try to open my video with an ACTION_VIEW intent, it appears that there are no apps that can handle the intent. I have the same video in a folder in my phone, and the gallery player can play it fine. I also downloaded VLC but