Git Product home page Git Product logo

fsimageviewer's People

Contributors

as24cdite avatar dehli avatar iwarshak avatar newbdez33 avatar staxmanade avatar x2on avatar yichizhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fsimageviewer's Issues

AutoRotate

Hi,

Can you confirm the process for allowing rotation on pictures only.

I know with iOS7 I have declared the "autoRotate" but is their anymore that needs to be done?

Thanks,

Adding a Tap Gesture Recognizer to the current image?

Hi all,

This is a great library! I was wondering. What would be the best way to add a tap event to a photo? My idea is to display an UIActionSheet when the user taps on the photo, with two actions, delete and set as default.

Thanks!

Move to Photo Index?

[photoController moveToImageAtIndex:[[FSImageViewerViewController alloc] currentImageIndex] animated:YES];

I am using the currentImageIndex but it's crashing?

Rotation Problem

Hi,
I've some problem when i rotate my device.
I can repeat the issue when i push in portrait and then i rotate in landscape mode.
You can see it in the attached image!
I've 3.2 version and iOs8
img_6009

Thanks

How can i customize the image view?

Sorry if it's a rookie question, but I'm basically starting to develop for iOS, and what i'd like to do is to add a small button to the lower-right corner of the image view so once tapped i wold segue to a view with the information about that image.

Unreliable image cache due to hash collisions

In "FSImageLoader.m" on line 79 [NSString hash] method is used to create a cache key:

NSString *cacheKey = [NSString stringWithFormat:@"FSImageLoader-%lu", (unsigned long)[[aURL description] hash]];

This causes problems with long image URLs, because "hash" method of NSString only uses 96 characters to generate the hash (first 32, last 32 and middle 32). Basically if your URLs are over 96 chars in length, there is a good chance of getting the same cacheKey for two different URLs. I run into this problem because I had a bunch of long, similar URLs where the only difference was the product id (starting at char 39).

This article describes the problem in detail.

Would it be possible to use a more robust hash function? Here is an implementation using MD5 hash:

- (NSString *)getMD5ValueForURL:(NSURL*)aURL {
    const char *urlString = [[aURL absoluteString] UTF8String];
    unsigned char hashBytes[CC_MD5_DIGEST_LENGTH];
    CC_MD5(urlString, strlen(urlString), hashBytes);

    NSMutableString *hashString = [NSMutableString stringWithCapacity:CC_MD5_DIGEST_LENGTH * 2];
    for ( NSInteger i = 0; i < CC_MD5_DIGEST_LENGTH; i++ ) {
        [hashString appendFormat:@"%02x", hashBytes[i]];
    }

    return hashString;
}

Weird offset from the top in iOS 7

I guess iOS7 view's defaults impacts the way how photos are positioned. When presenting the controller the photo is shifted a bit down. After interaction it gets to the center. Is it related to UIEdgeInsets if the view if view is behind the bars?

The demo does not build with Xcode 6.4

AS the title says I imported the latest version 3.4 via cocoa pods in my project and it gave me build errors, so I downloaded the DEMO project and it does not build either. Maybe I am missing something super obvious but usually it should just be 'pod install' and thats it.
screen shot 2015-10-11 at 19 07 08

currentIndex

Hi,

Thanks for fixing the crash bug.

Also, I am using this to reference which index it was last on;

    [photoController moveToImageAtIndex:[photoController currentImageIndex] animated:YES];

But it crashes with this?

* Terminating app due to uncaught exception 'NSRangeException', reason: '* -[__NSArrayM objectAtIndex:]: index 2147483648 beyond bounds [0 .. 6]'
*** First throw call stack:

Any ideas?

Thanks,

Zoom using double tap -> Slide -> Multiple Images Issue

When zooming into an image and trying to slide around, as you reach the borders, the parent scrollview will try to scroll to the previous / next image.

To reproduce this behaviour:
Add multiple images, zoom into an image (using swipe NOT double tap, using double tap, everything looks fine), slide around.

Problem with Sharing of local images

Hi, I'm trying to use the Viever with local images, with
[NSURL fileURLWithPath:imageName]
and no issues but when I try to share the image I get the error
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The image must be loaded to share.'

AFNetworking 3.1+ support?

Can this work with AFNetworking 3.1+? I have code that uses 3.1, and when I tried to add your pod, it complains that 2.5 is not available.

[Question] Adding a Content-Type for image download?

Hi all,

With FSImageViewer, before the update to AFNetworking 2.0, I could use the following code to add a content type:

[AFImageRequestOperation addAcceptableContentTypes:
                     [NSSet setWithObject:@"application/x-www-form-urlencoded"]];

But on AFNetworking 2.0, AFImageRequestOperation has been "replaced" by AFImageResponseSerializer. However I cannot find a class method to add this from my code, without modifying FSImageViewer directly.

Any ideas on how this can be achieved in the latest version?

Thanks.

A problem when scroll image fast

And I have found an other problem, May be dozens of images, then make fullscreen to browse pictures,and scroll fast . The scrollView shows an error.
img_0721

img_0722

Grid Layout

It there anyway to display a grid for all images before picking one of them?

That would be something really great. Thanks for the library @x2on !

There has a problem with the loading image

when the sixth image is loading , I touch the first image to show fullscreen , then scroll to the sixth image , the sixth imageView is showing the first image before its finish loading. Could you help to fix this problem ?

Higher resolution images - App Terminated due to Memory Pressure

Hi,
My gallery consist of high resolution images with size about 20-30 mb. Continuous sliding in between images cased a memory pressure and application gets terminated.

Is there any way to resize my image according to the device resolution at the time of download success or later ?

Help appreciated.

How can I use the picture in the project to browser

if i creat my image object like this :
NSString *photoStr = [[NSBundle mainBundle] pathForResource:@“XXX” ofType:@"png"];
UIImage *firstPhoto = [UIImage imageWithContentsOfFile:photoStr];

If I want to use the picture in the project,how can i do it.

Images rotated 90 degrees

I seem to have images that are show up rotated 90 degrees, especially photos taken in portrait mode (they show up landscape). I also have a portrait pic that shows up rotated 180 degrees. Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.