Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functs get timestamp and save as png with opts #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hscolan
Copy link

@hscolan hscolan commented Mar 7, 2017

No description provided.

@@ -387,7 +387,7 @@ cdef class Context:
"min_num_image_notifications": config.minNumImageNotifications,
"grab_timeout": config.grabTimeout,
"grab_mode": config.grabMode,
"high_performance_retrieve_buffer": config.highPerformanceRetrieveBuffer,
#"high_performance_retrieve_buffer": config.highPerformanceRetrieveBuffer,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated.changes?

ts=fc2GetImageTimeStamp( &self.img)
return ts

def save_as_png(self,filename):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be save_image() and the format choice should be exposed as an argument in a suitable way.

with nogil:
fc2SaveImage( &self.img, filename_c, format )

def save_as_pngwithopt(self,filename,compressionlevel=1,interlaced=False):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

@jordens
Copy link
Owner

jordens commented Jul 13, 2017

@hscolan ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants