Pgmagick implode() method - Python Last Updated : 26 May, 2020 Comments Improve Suggest changes Like Article Like Report The implode() function is an inbuilt function in the Pgmagick library which is used to implode image pixels about the center. The function returns the true value on success. Syntax: implode(factor) Parameters: This function accepts single parameter as mentioned above and described below: factor: This parameter is used to specify the factor by which the image need to be implode image pixels about the center. Return Value: This function returns the Pgmagick object with image added. Input Image: Example 1: Python3 from pgmagick import Image, DrawableCircle, DrawableText from pgmagick import Geometry, Color # draw the image of dimension 600 * 600 img = Image('input.png') # invoke implode() function img.implode(4) # invoke write function along with filename img.write('2_a.png') Output: Example 2: Python3 # import library from pgmagick import Image, DrawableCircle, DrawableText from pgmagick import Geometry, Color # Draw image of dimension 600 * 600 having background green im = Image(Geometry(600, 600), Color("# 32CD32")) # invoke DrawableCircle() function circle = DrawableCircle(100, 100, 300, 20) # invoke draw() function im.draw(circle) # set font size to 40p im.fontPointsize(40) # invoke DrawableText() function text = DrawableText(250, 450, "GeeksForGeeks") # invoke draw() function im.draw(text) # invoke implode() function im.implode(8) # invoke write function along with filename im.write('1_b.png') Output: Comment More infoAdvertise with us Next Article Pgmagick implode() method - Python S sarthak_ishu11 Follow Improve Article Tags : Python Image-Processing Python-pgmagick Practice Tags : python Similar Reads Pgmagick despeckle() method - Python The despeckle() function is an inbuilt function in the Pgmagick library that is used to reduce the speckles within an image. The function returns the true value of success. Syntax: emboss(radius) Parameters: This function does not accept any parameter. Return Value: This function returns the Pgmagic 1 min read Python | Pandas Index.insert() Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas Index.insert() function make new Index inserting new item at location. This fun 2 min read numpy.load() in Python numpy.load() function return the input array from a disk file with npy extension(.npy). Syntax : numpy.load(file, mmap_mode=None, allow_pickle=True, fix_imports=True, encoding='ASCII') Parameters: file : : file-like object, string, or pathlib.Path.The file to read. File-like objects must support the 2 min read Python String format_map() Method Python String format_map() method is an inbuilt function in Python, which is used to return a dictionary key's value. Syntax: string.format_map(z) Parameters: Here z is a variable in which the input dictionary is stored and string is the key of the input dictionary. input_dict: Takes a single parame 2 min read How to Unpack a PKL File in Python Unpacking a PKL file in Python is a straightforward process using the pickle module. It allows you to easily save and load complex Python objects, making it a useful tool for many applications, especially in data science and machine learning. However, always be cautious about the security implicatio 3 min read Like