Coder Social home page Coder Social logo

dzenbot / dznphotopickercontroller Goto Github PK

View Code? Open in Web Editor NEW
1.5K 1.5K 266.0 34.28 MB

A photo search/picker for iOS using popular image providers like 500px, Flickr, Instagram, Giphy, Google & Bing Images

Home Page: https://www.cocoacontrols.com/controls/dznphotopickercontroller

License: MIT License

Ruby 1.18% Objective-C 98.82%

dznphotopickercontroller's People

Contributors

aleksandrshoshiashvili avatar dennislysenko avatar dmitry-kovba avatar dzenbot avatar gknauss avatar ichitech avatar idiogo avatar johncouto avatar kaojohnny avatar karlbecker avatar knutigro avatar readmecritic 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dznphotopickercontroller's Issues

UIKit calls on a background thread?

Hi,

It seems that your code calls some methods from UIKit and put on a background thread?

The problem is that with iOS7 you get a black screen when using the camera function if something is in a background thread from UIKit. If I use the search photo function and later use the take photo it will come with a black screen and it takes at least 30 seconds when the camera preview comes back.

See simular problem here: http://stackoverflow.com/questions/16746839/idevice-camera-shows-black-instead-of-preview

Is there a way to remove these from the background thread?

Thanks!

Upgrade to SDWebImage 3.6

Are there any plans to upgrade to SDWebImage 3.6? The podspec requires 3.5.4 however I would like to use 3.6 in my project as it includes many fixes / improvements. I can't right now because DZNPhotoPickerController creates a version conflict by requiring an older version as a dependency.

Thanks!

rename control

Apple reserves the UI and NS prefixes, among others. Please resubmit to Cocoa Controls after. thanks!

reloadDataSetIfNeeded

Pulled down the latest version (1.4.3) and it does not compile because of a method not found.

[self.collectionView reloadDataSetIfNeeded];

No visible @interface for 'UICollectionView' declares the selector 'reloadDataSetIfNeeded'

/Pods/DZNPhotoPickerController/Source/Classes/DZNPhotoDisplayViewController.m [Line 582]

Any ideas?

DZNPhotoEditViewController setCropSize not working

If I set the crop size I get a bunch of errors like:

CGContextSetFillColorWithColor: invalid context 0x0.

My code:

if (self.editingMode == DZNPhotoEditViewControllerCropModeSquare)
 {
        DZNPhotoEditViewController *editViewController = [[DZNPhotoEditViewController alloc] initWithImage:[info objectForKey:UIImagePickerControllerOriginalImage]
                                                                                                  cropMode:self.editingMode];
        [editViewController setCropSize:CGSizeMake(640, 380)];

        [self pushViewController:editViewController animated:YES];
}

It only works without setting the crop size.

Add search history support

The idea will be:

  • store locally the 10-20 latest search strings (beware of duplicate items).
  • display the search strings as soon as the search bar becomes first responder.
  • display a button to clean search history.
  • by tapping in any of the history search strings, a new search will be perform (like the tag search).

Any thoughts?

Add license support

Assign an array of licence constants to be supported when searching on any photo search service like Flickr, 500px, and more.

Circular cropped image coming back as square. Is this expected?

Hi, I was just looking at this awesome component, and ran the sample application. I noticed that in the updateImageWithPayload: method, the edited image is returned as still being a square. Is this the expected behavior?

If so, I guess there would be a step in there to crop to the circle given the scale factor etc.

Or have I missed something?

Thanks.

With Edit and Download Disabled Getting Invalid Context Errors

After picking an image and dimissing the picker control, I sometimes get a whole list of invalid context errors. I did not use the "edit" functionality and I'm using as image picker only (no crop, no edit). Just a fraction of the errors I get:
CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Sep 30 22:13:38 Praneeths-Mac.local NotAlone2[4693] : CGContextSetStrokeColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Sep 30 22:13:38 Praneeths-Mac.local NotAlone2[4693] : CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
] : CGContextSetFlatness: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
] : CGContextAddPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
] : CGContextDrawPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
] : CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
3] : CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
... etc
and so on... Thoughts on what might be going on? My app does not do any drawing so this is some residual thread from DZNPhotoPickerController.

Cocoapods update issue

Hi, do you know why if I try to update pod it doesn't recognize version 1.4.2? It stays in 1.4 and I really need to update.

Thanks

Sample Project Not Functioning

pod install fails with message:

Pull is not possible because you have unmerged files.

Please, fix them up in the work tree, and then use 'git add/rm '

as appropriate to mark resolution, or use 'git commit -a'.

Allow different behaviour based on API Editions (Free, Paid)

Since search APIs like Google's, Bing's and Yahoo's are paid, and offer Free editions with very limited query options, this will allow different UI behaviour based on which editions the developer might have (Free or Paid).

@sjapps This will then allow a fix for the 400 response from Google API when requesting for more results per page than 10. So the UI can still deliver 4 columns of thumbs, with normal size of 75 pts.

This is a serious error...

Hey use only the DZNPhotoEditorViewController and when I press on Choose I get the following error. Also is the userInfo[UIImagePickerControllerEditedImage] nil

<Error>: CGContextTranslateCTM: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextClipToRect: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextGetBaseCTM: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextConcatCTM: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextSetBaseCTM: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextConcatCTM: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextConcatCTM: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextClipToRect: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextDrawImage: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextSetBaseCTM: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextSetBlendMode: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextSetAlpha: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextTranslateCTM: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextScaleCTM: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextDrawImage: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 24 17:24:29 Eike-Bartelss-iPad Efficient Sea[448] <Error>: CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

Add expose "didPickPhoto" as delegate from DZNPhotoPickerController

Basic feature: enable the option to select photo without download it first or skip it for later downloading. Reason: I want to allow multiple photos select. Or if no plan for multiple photo select at least expose delegate didPickPhoto without downloading it first or option to skip downloading..
or run SDWebImage in background thread so not blocking main thread which disable selecting multiple photos after selecting 3 photos and be able to select photo again after main thread free.

also : adding break point to didPickPhoto. It did not response as smooth if tapping multiple images with editing option disable. Probably the first three tap on photo will response to didPickPhoto then when the image downloaded in progress it did not response./skip it

Improve Unit Tests

Mapping tests are not enough, and still, they're very fragile.
To make this library more robust and stable, tests are mandatory. Maybe using Kiwi?

Instagram crashes the app

Hi,

When searching the internet for 'California Sun' using Instagram the sample will crash. It works with a singular search term but not search terms that include spaces.

Thanks.

CocoaPod Issue: Required AFNetworking 2.4.1

I was using AFNetworking 2.5 but DZNPhotoPickerController required 2.4.1. Now I have to downgrade to 2.5.

Can you mark version 2.4.1 as a minimal version requirement instead of exact version requirement?

Thanks.

Image is not cropping to circle!!!

I downloaded latest code and run the app.
After zooming & moving the selecting image in the circular space, I tapped "Choose".
In the main view, its not showing circular image. Don't know what went wrong.

Build its own third party API wrappers

Right now, for consuming 500px and Flickr content, the project is using different Objective-C API wrappers installed with pods. This was really useful at the beginning, so I could focus mainly in UI development.

I realise that this libraries are very complete (specially Flickr with around 100 classes, for a total of 2MBs) and do lots of things that DZNPhotoPickerController doesn't really need.
A way for reducing the amount of dependencies, is to build its own limited APIs wrapper. This will allow more scalability for supporting additional third party APIs that doesn't necessarily have an Objective-C wrappers.

AFNetworking 2.0 support

How can i integrate this in a project that is already using AFNetworking 2.0 , one of your classes is using AFHTTPClient which is no longer available in 2.0 ?

Dependancy guidelines.

It would be great if details about the dependancies like AFNetworking and SDWebImage are added to the readme page.

It would help people who are compiling the sources manually as well as for people who are Integrating "DZNPhotoPickerController" to their old projects.

Improve iPad support

The control was first built for iPhone. Since my biggest need right now is to fix the iPhone support as much as possible and add more features, I haven't had the time to really work on iPad just yet. There is some minimum support, but really incomplete.

BUG: at DZNPhotoPickerControllerDelegate : didFinishPickingPhotoWithInfo

tap on one of image with DZNPhotoPickerController option allowsEdition:NO. didFinishPickingPhotoWithInfo called several times. possible problem in using SDWebImageDownloader callback and nsnotificationCenter

(- (void)photoPickerController:(DZNPhotoPickerController *)picker didFinishPickingPhotoWithInfo:(NSDictionary *)info)

Cocoapods duplicates DZNPhotoPickerControllerConstants.h

Your podspec maps headers to the files: 'Source/Classes/*.h' which includes DZNPhotoPickerControllerConstants.h. DZNPhotoPickerController also includes DZNPhotoService as a dependency, which explicitly includes DZNPhotoPickerControllerConstants.h as well. This causes Xcode 6 to generate a warning.

There's a few different ways to fix your podspec, let me know if you would like me to suggest a fix.

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.