{"id":10875,"date":"2021-11-02T10:00:00","date_gmt":"2021-11-02T01:00:00","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=10875"},"modified":"2021-11-01T19:38:41","modified_gmt":"2021-11-01T10:38:41","slug":"cropping-bulk-images-with-the-same-dimensions-in-python-script","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/10875","title":{"rendered":"Cropping bulk images with the same dimensions in python script"},"content":{"rendered":"\n<p>For this week, I would like to share about cropping the bulk images with the same dimensions in python. This method is useful in some cases that image processing or some steps of computer vision projects. The following python script is to crop all images in a folder and save the result to another folder. I used Pillow image library to crop images.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><font><\/font><\/p><cite><font>N<\/font><font>o<\/font><font>t<\/font><font>e<\/font><font>:<\/font><font> <\/font><font>A<\/font><font>l<\/font><font>l<\/font><font> <\/font><font>i<\/font><font>m<\/font><font>a<\/font><font>g<\/font><font>e<\/font><font>s<\/font><font> <\/font><font>t<\/font><font>o<\/font><font> <\/font><font>b<\/font><font>e<\/font><font> <\/font><font>c<\/font><font>r<\/font><font>o<\/font><font>p<\/font><font>p<\/font><font>e<\/font><font>d<\/font><font> <\/font><font>m<\/font><font>u<\/font><font>s<\/font><font>t<\/font><font> <\/font><font>b<\/font><font>e<\/font><font> <\/font><font>t<\/font><font>h<\/font><font>e<\/font><font> <\/font><font>s<\/font><font>a<\/font><font>m<\/font><font>e<\/font><font> <\/font><font>d<\/font><font>i<\/font><font>m<\/font><font>e<\/font><font>n<\/font><font>s<\/font><font>i<\/font><font>o<\/font><font>n<\/font><font>s<\/font>.<font><\/font><\/cite><\/blockquote>\n\n\n\n<p><font>F<\/font><font>i<\/font><font>r<\/font><font>s<\/font><font>t<\/font><font>,<\/font><font> <\/font><font>i<\/font><font>m<\/font><font>p<\/font><font>o<\/font><font>r<\/font><font>t<\/font><font> <\/font><font>r<\/font><font>e<\/font><font>q<\/font><font>u<\/font><font>i<\/font><font>r<\/font><font>e<\/font><font>d<\/font><font> <\/font><font>l<\/font><font>ib<\/font><font>r<\/font><font>a<\/font><font>r<\/font><font>i<\/font><font>e<\/font><font>s<\/font>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import os\nimport glob  # pip install glob2\nfrom PIL import Image  # pip install Pillow\nfrom pyfiglet import Figlet  # pip install pyfiglet<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<p><\/p>\n\n\n\n<p><font><span>Program flow is to ask user for the bulk image directory path , desired output directory path and coordinates <\/span><\/font><font>to be <\/font><font><font>c<\/font><font>r<\/font><\/font><font><font>o<\/font><font>p<\/font><\/font><font><font>p<\/font><font>e<\/font><\/font><font><font>d<\/font><\/font><font><font>.<\/font> <font>T<\/font><\/font><font><font>h<\/font><\/font><font><font>e<\/font><font>n<\/font><\/font><font> c<\/font><font>r<\/font><font>o<\/font><font>p<\/font><font><font> <\/font><\/font><font>a<\/font><font>l<\/font><font>l<\/font><font> <\/font><font>i<\/font><font>m<\/font><font>a<\/font><font>g<\/font><font>e<\/font><font>s<\/font><font> <\/font><font>a<\/font><font>n<\/font><font>d<\/font><font> <\/font><font>s<\/font><font>a<\/font><font>v<\/font><font>e<\/font><font> <\/font><font>t<\/font><font>h<\/font><font>e<\/font><font> <\/font><font>r<\/font><font>e<\/font><font>s<\/font><font>u<\/font><font>l<\/font><font>t<\/font><font> <\/font><font>t<\/font><font>o<\/font><font> <\/font><font>o<\/font><font>u<\/font><font>t<\/font><font>p<\/font><font>u<\/font><font>t<\/font><font> <\/font><font>d<\/font><font>i<\/font><font>r<\/font><font>e<\/font><font>c<\/font><font>t<\/font><font>o<\/font><font>r<\/font><font>y<\/font>.<font><\/font><\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def main():\n        getDirandFiletype()\n        getCoordinate()\n        for x in filenames:\n            name = x.replace(img_dir, '')\n            img = Image.open(str(x))\n            region = img.crop((left, top,right, bottom))\n            region.save(outpath + name)\n        print(custom_fig.renderText('Done!'))<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<p><\/p>\n\n\n\n<p><font>T<\/font><font>he<\/font><font>n<\/font><font> <\/font><font>i<\/font><font>n<\/font><font> getDirandFiletype() functio<\/font><font>n<\/font><font><font>,<\/font><font> <\/font><\/font><font>t<\/font><font>h<\/font><font>e<\/font><font> <\/font><font>u<\/font><font>s<\/font><font>e<\/font><font>r<\/font><font> <\/font><font>i<\/font><font>s<\/font><font> <\/font><font>a<\/font><font>s<\/font><font>k<\/font><font>ed<\/font><font> <\/font><font>f<\/font><font>o<\/font><font>r<\/font><font> <\/font><font>i<\/font><font>m<\/font><font>a<\/font><font>g<\/font><font>e<\/font><font> <\/font><font>p<\/font><font>a<\/font><font>t<\/font><font>h<\/font><font> <\/font><font>a<\/font><font>n<\/font><font>d<\/font><font> <\/font><font>o<\/font><font>u<\/font><font>t<\/font><font>p<\/font><font>u<\/font><font>t<\/font><font> <\/font><font>p<\/font><font>a<\/font><font>t<\/font><font>h<\/font><font> <\/font><font>a<\/font><font>n<\/font><font>d<\/font><font> <\/font><font><font><font>r<\/font><font>e<\/font><font>a<\/font><font>d<\/font><\/font><\/font><font> <\/font><font>a<\/font><font>l<\/font><font>l<\/font><font> <\/font><font>f<\/font><font>i<\/font><font>l<\/font><font>e<\/font><font>s<\/font><font> <\/font><font>i<\/font><font>n<\/font><font> <\/font><font>t<\/font><font>h<\/font><font>e<\/font><font> <\/font><font>p<\/font><font>a<\/font><font>t<\/font><font>h<\/font><font> <\/font><font>w<\/font><font>i<\/font><font>t<\/font><font>h<\/font><font> <\/font><font>t<\/font><font>h<\/font><font>e<\/font><font> <\/font><font>h<\/font><font>e<\/font><font>l<\/font><font>p<\/font><font> <\/font><font>o<\/font><font>f<\/font><font> <\/font><font>g<\/font><font>l<\/font><font>o<\/font><font>b<\/font><font> <\/font><font>l<\/font><font>i<\/font><font>b<\/font><font>r<\/font><font>a<\/font><font>r<\/font><font>y<\/font><font>.<\/font><font> <\/font><font>A<\/font><font>n<\/font><font>d<\/font><font> <\/font><font>a<\/font><font>l<\/font><font>s<\/font><font>o<\/font><font> <\/font><font>s<\/font><font>h<\/font><font>o<\/font><font>w<\/font><font> <\/font><font><font>d<\/font><font>i<\/font><\/font><font><font>m<\/font><font>e<\/font><\/font><font><font><font>n<\/font><\/font><\/font><font><font>s<\/font><font>i<\/font><\/font><font><font>o<\/font><font>n<\/font><\/font><font> <\/font><font><font>o<\/font><font>f<\/font><\/font><font> <\/font><font><font>e<\/font><font>a<\/font><\/font><font><font>c<\/font><font>h<\/font><\/font><font> <\/font><font><font>i<\/font><font>m<\/font><\/font><font><font>a<\/font><font>g<\/font><\/font><font><font>e<\/font><\/font><font> <\/font><font><font>t<\/font><font>o<\/font><\/font><font> <\/font><font><font>b<\/font><font>e<\/font><\/font><font> <\/font><font><font>c<\/font><font>r<\/font><\/font><font><font>o<\/font><font><font>p<\/font><\/font><\/font><font><font>p<\/font><font>e<\/font><\/font><font><font>d<\/font><font>.<\/font><\/font><font> <\/font><font><font><\/font><\/font><\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def getDirandFiletype():\n        global img_dir, outpath, filenames\n\n        print(\"Please enter Your Images Path.  eg:D:\\Download\\jaffedbase\\n\\n########################################\")\n        img_dir = input(\"\\nWhat is your image directory path : \")\n        outpath = input(\"\\nWhat is your output path where to be saved : \")\n        \n        while(outpath == img_dir):\n            print('\\nEnter a different path with the image directory!!')\n            outpath = input(\"\\nWhat is your output path where to be saved : \")\n\n        filetype = input(\"\\nEnter file type (eg: png) : \")\n        data_path = os.path.join(img_dir)\n        # read all files in the path mentioned\n        filenames = glob.glob(data_path + \"\/*.\" + filetype)\n        processed = 0\n        for file in filenames:\n            img = Image.open(str(file))\n            width, height = img.size\n            print(\"\\nDimension of source images : \"+str(width),str(height))\n            processed += 1\n            if processed &gt;= 1:\n                break <\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<p><\/p>\n\n\n\n<p><font>A<\/font><font>n<\/font><font><font>d <\/font><\/font><font><font>i<\/font><font>n<\/font><font> g<\/font><font>e<\/font><\/font><font><font>t<\/font><font>C<\/font><\/font><font><font>o<\/font><font>o<\/font><\/font><font><font>r<\/font><font>d<\/font><\/font><font><font>i<\/font><font>n<\/font><\/font><font><font>a<\/font><font>t<\/font><\/font><font><font>e<\/font><font>() <\/font><\/font><font><font>f<\/font><font>u<\/font><\/font><font><font>n<\/font><font>c<\/font><\/font><font><font>t<\/font><font>i<\/font><\/font><font>o<\/font><font>n<\/font><font>,<\/font><font> <\/font><font>t<\/font><font>h<\/font><font>e<\/font><font> <\/font><font>u<\/font><font>s<\/font><font>e<\/font><font>r<\/font><font> <\/font><font>i<\/font><font>s<\/font><font> <\/font><font>a<\/font><font>s<\/font><font>k<\/font><font>e<\/font><font>d<\/font><font> <\/font><font>f<\/font><font>o<\/font><font>r<\/font><font> <\/font><font><font>t<\/font><font>h<\/font><\/font><font><font>e<\/font> <\/font><font><font>c<\/font><font>r<\/font><\/font><font><font>o<\/font><font>p<\/font><\/font><font><font><font>p<\/font><\/font><\/font><font><font>i<\/font><font>n<\/font><\/font><font><font>g<\/font> <font>a<\/font><\/font><font><font>r<\/font><font>e<\/font><\/font><font><font><font>a<\/font><\/font><\/font><font> <\/font><font><font>w<\/font><font>i<\/font><\/font><font><font>t<\/font><font>h<\/font><\/font><font> left, top, right, bottom coordinates<\/font><font>.<\/font><font> <\/font><font>P<\/font><font>i<\/font><font>l<\/font><font>l<\/font><font>o<\/font><font>w<\/font><font> <\/font><font>i<\/font><font>m<\/font><font>a<\/font><font>g<\/font><font>e<\/font><font> <\/font><font>l<\/font><font>i<\/font><font>b<\/font><font>r<\/font><font>a<\/font><font>r<\/font><font>y<\/font><font> <\/font><font>i<\/font><font>s<\/font><font> <\/font><font>u<\/font><font>s<\/font><font>e<\/font><font>d<\/font><font> <\/font><font>f<\/font><font>o<\/font><font>r<\/font><font> <\/font><font>c<\/font><font>r<\/font><font>o<\/font><font>p<\/font><font>p<\/font><font>i<\/font><font>n<\/font><font>g<\/font>.<font><\/font><\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def getCoordinate():\n        global left, top, right, bottom, img\n        left = int(input(\"\\nEnter left coordinate : \"))  \n        top = int(input(\"Enter top coordinate : \"))  \n        right = int(input(\"Enter right coordinate : \"))  \n        bottom = int(input(\"Enter bottom coordinate : \")) <\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<p><\/p>\n\n\n\n<p><font>T<\/font><font>h<\/font><font>a<\/font><font>t<\/font><font> <\/font><font>i<\/font><font>s<\/font><font> <\/font><font>a<\/font><font>l<\/font><font>l<\/font><font>.<\/font><font> <\/font><font>T<\/font><font>h<\/font><font>e<\/font><font> <\/font><font>f<\/font><font>i<\/font><font>n<\/font><font>a<\/font><font>l<\/font><font> <\/font><font>c<\/font><font>o<\/font><font>d<\/font><font>e<\/font><font> <\/font><font>w<\/font><font>i<\/font><font>t<\/font><font>h<\/font><font> <\/font><font>e<\/font><font>r<\/font><font>r<\/font><font>o<\/font><font>r <\/font><font>h<\/font><font>a<\/font><font>n<\/font><font>d<\/font><font>l<\/font><font>i<\/font><font>n<\/font><font>g<\/font><font> <\/font><font>a<\/font><font>n<\/font><font>d<\/font><font> <\/font><font>b<\/font><font>e<\/font><font>a<\/font><font>u<\/font><font>t<\/font><font>i<\/font><font>f<\/font><font>u<\/font><font>l<\/font><font> <\/font><font>t<\/font><font>e<\/font><font>x<\/font><font>t<\/font><font> <\/font><font>r<\/font><font>e<\/font><font>n<\/font><font>d<\/font><font>e<\/font><font>r<\/font><font> w<\/font><font>i<\/font><font>t<\/font><font>h<\/font><font> p<\/font><font>y<\/font><font>f<\/font><font>l<\/font><font>i<\/font><font>g<\/font><font>l<\/font><font>e<\/font><font>t<\/font><font> <\/font><font><font>l<\/font><font>i<\/font><\/font><font><font>b<\/font><font>r<\/font><\/font><font><font>a<\/font><font>r<\/font><\/font><font><font>y<\/font><\/font><font> <\/font><font><font>i<\/font><font>s<\/font><\/font><font> <\/font><font><font>a<\/font><font>s<\/font><\/font><font> <\/font><font><font>f<\/font><font>o<\/font><\/font><font><font>l<\/font><font>l<\/font><\/font><font><font>o<\/font><font>w<\/font><\/font><font>s<\/font><font>.<\/font><font><font><\/font><\/font><\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import os\nimport glob  # pip install glob2\nfrom PIL import Image  # pip install Pillow\nfrom pyfiglet import Figlet  # pip install pyfiglet\n\ntry:\n    custom_fig = Figlet(font='standard')\n    def main():\n        getDirandFiletype()\n        getCoordinate()\n        for x in filenames:\n            name = x.replace(img_dir, '')\n            img = Image.open(str(x))\n            region = img.crop((left, top,right, bottom))\n            region.save(outpath + name)\n        print(custom_fig.renderText('Done!'))\n        \n    def getDirandFiletype():\n        global img_dir, outpath, filenames\n\n        print(\"Please enter Your Images Path.  eg:D:\\Download\\jaffedbase\\n\\n########################################\")\n        img_dir = input(\"\\nWhat is your image directory path : \")\n        outpath = input(\"\\nWhat is your output path where to be saved : \")\n        \n        while(outpath == img_dir):\n            print('\\nEnter a different path with the image directory!!')\n            outpath = input(\"\\nWhat is your output path where to be saved : \")\n\n        filetype = input(\"\\nEnter file type (eg: png) : \")\n        data_path = os.path.join(img_dir)\n        # read all files in the path mentioned\n        filenames = glob.glob(data_path + \"\/*.\" + filetype)\n        processed = 0\n        for file in filenames:\n            img = Image.open(str(file))\n            width, height = img.size\n            print(\"\\nDimension of source images : \"+str(width),str(height))\n            processed += 1\n            if processed &gt;= 1:\n                break \n            \n    def getCoordinate():\n        global left, top, right, bottom, img\n        left = int(input(\"\\nEnter left coordinate : \"))  # 50\n        top = int(input(\"Enter top coordinate : \"))  # 50\n        right = int(input(\"Enter right coordinate : \"))  # 190\n        bottom = int(input(\"Enter bottom coordinate : \"))  # 235\n    \n    \n    main()\nexcept SystemError:\n    print(\"\\nSorry Buddy. Your Coordinates are invalid. Plese Check Coordinates Again!\")\nexcept ValueError:\n    print(\"\\nPlease use Only Numbers for Coordinates!\")\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<p><\/p>\n\n\n\n<p><img loading=\"lazy\" width=\"734\" height=\"479\" class=\"wp-image-10878\" style=\"width: 500px\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2021\/11\/1.png\" alt=\"\"><font><\/font><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><font>I<\/font><font>m<\/font><font>a<\/font><font>g<\/font><font>e<\/font><font>s<\/font><font> <\/font><font>t<\/font><font>o<\/font><font> <\/font><font>b<\/font><font>e<\/font><font> <\/font><font>c<\/font><font>r<\/font><font>o<\/font><font>p<\/font><font>p<\/font><font>e<\/font><font>d<\/font><font> <\/font><font>a<\/font><font>r<\/font><font>e<\/font><font> <\/font><font>a<\/font><font>s<\/font><font> <\/font><font>f<\/font><font>o<\/font><font>l<\/font><font>l<\/font><font>o<\/font><font>w<\/font><font>s<\/font><font>.<\/font><\/p>\n\n\n\n<p><img loading=\"lazy\" width=\"849\" height=\"392\" class=\"wp-image-10879\" style=\"width: 500px\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2021\/11\/2.png\" alt=\"\"><font><\/font><\/p>\n\n\n\n<p><font>T<\/font><font>h<\/font><font>e<\/font><font> <\/font><font>r<\/font><font>e<\/font><font>s<\/font><font>u<\/font><font>l<\/font><font>t<\/font><font>e<\/font><font>d<\/font><font> <\/font><font>i<\/font><font>m<\/font><font>a<\/font><font>g<\/font><font>e<\/font><font>s<\/font><font> <\/font><font>a<\/font><font>r<\/font><font>e<\/font><font> <\/font><font>a<\/font><font>s<\/font><font> <\/font><font>f<\/font><font>o<\/font><font>l<\/font><font>l<\/font><font>o<\/font><font>w<\/font><font>s<\/font><font>.<\/font><\/p>\n\n\n\n<p><img loading=\"lazy\" width=\"776\" height=\"427\" class=\"wp-image-10880\" style=\"width: 500px\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2021\/11\/3.png\" alt=\"\"><font><\/font><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><font>H<\/font><font>o<\/font><font>p<\/font><font>e<\/font><font> <\/font><font>y<\/font><font>ou<\/font><font> <\/font><font>e<\/font><font>n<\/font><font>j<\/font><font>o<\/font><font>y<\/font><font>e<\/font><font>d<\/font><font> <\/font><font><font>a<\/font><font>b<\/font><\/font><font><font>o<\/font><font>u<\/font><\/font><font><font>t<\/font> <\/font><font><font>t<\/font><font>hi<\/font><\/font><font>s<\/font><font>.<\/font><\/p>\n\n\n\n<p><font>B<\/font><font>y<\/font><font> <\/font><font>A<\/font><font>s<\/font><font>a<\/font><font>h<\/font>i<font><\/font><\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/10875\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/10875\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Cropping bulk images with the same dimensions in python script\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/10875\" data-text=\"Cropping bulk images with the same dimensions in python script\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/10875\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/10875\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>For this week, I would like to share about cropping the bulk images with the same dimensions in python. This m [&hellip;]<\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/10875"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=10875"}],"version-history":[{"count":8,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/10875\/revisions"}],"predecessor-version":[{"id":10898,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/10875\/revisions\/10898"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=10875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=10875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=10875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}