針對一些AI作圖的素材玩家,我們提供了一些提升midjourney圖片生成及處理的工具。
之前有prompt生成表格工具、夜晚休息時候的relaxed跑圖模式,以及這個新的四宮格切圖工具,有需要的可以自行加入我們tzart進行工具使用和下載哈。
最近,有很多玩家都嘗試用midjourney在抖音上做圖文。然而,midjourney生成的圖都是四宮格的,如果想要分成4張單獨的圖片,還需要自己切分,或者每個都單獨生成大圖。這對于想要快速生成圖片的玩家來說不太友好。
于是,市面上出現(xiàn)了一些針對AI作圖的素材玩家的工具,主要是提升midjourney圖片生成及處理。
比如這個圖片切割機:https://cunkai.gitee.io/mj/
用戶只需批量上傳圖片,它就會自動將四宮格圖片切割成4張單獨的圖片,而且不會讓圖片變模糊。
此外,你還可以嘗試用Chatgpt幫你寫程序來切分Midjourney生成的圖片,你只需要提出具體要求:
我需要你扮演一位資深程序員,幫我寫一個web應用,下面我將提出具體要求
1.這個應用是基于瀏覽器的;
2.這個應用的功能是將用戶上傳的圖片平均切分為4張圖片;3.當圖片上傳完成后,自動開始切分圖片;
4.當圖片完成切分后,自動下載4張圖片,分別命名為原圖片名稱后面加”-1″~”-4″;
請給出完整的代碼,并告訴我如何將這個web應用部署在服務器上。
萬萬沒想到! chatgpt不僅給我寫了代碼,還告訴了我怎么部署!(代碼見最后)
以上代碼會在用戶選擇文件后自動開始切分圖片并下載,沒有額外的下載按鈕。
要將此Web應用程序部署在服務器上,您需要將此代碼保存為一個HTML文件,并將其上傳到Web服務器或云托管服務中,以便用戶可以通過Web瀏覽器訪問該應用程序。如果您使用云托管服務,例如Amazon S3或Google Cloud Storage,您需要設置正確的存儲桶權限以便用戶可以下載生成的圖片。
Chatgpt給我生成的代碼:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink=”http://www.w3.org/1999/xlink” width=”19px” height=”24px” viewBox=”0 0 19 24″ version=”1.1″ class=”lock-img”>剩余80%的圖文內(nèi)容打賞作者后可查看<button onClick=”dashangToggle()” class=”dashang”>打賞聯(lián)系客服
微信掃碼打賞作者
金額:2.99元好的內(nèi)容,值得贊賞!打賞后不支持退款! 聯(lián)系客服 掃描下方二維碼關注公眾號“站長資訊”,及時聯(lián)系客服解決。請把【打賞記錄詳情】截圖給客服,同時把您打賞的文章【網(wǎng)址】發(fā)給客服??头?4小時內(nèi)把完整文章內(nèi)容發(fā)送給您。(客服在線時間為周一至周五9:00-11:30 14:00-17:30) span.cprice { color: #ee2222; } .pcontent { overflow: visible } .markdown { position: relative; text-overflow: ellipsis; word-wrap: break-word; padding-bottom: 160px } .trancent_block { background-color: #fff; opacity: 0; filter: alpha(opacity=0) } .carousel_collapsed_layer { display: block; width: 100%; height: 110px; position: absolute; bottom: 180px } .bg-gradient-white, .bg-gradient-snow { background-image: -webkit-linear-gradient(top,rgba(255,255,255,0) 25%,#fff 67%); background-image: linear-gradient(to bottom,rgba(255,255,255,0) 25%,#fff 67%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#00ffffff’,endColorstr=’#FFffffff’,GradientType=0) } .reward-partial.reward-partial-mask { margin-top: 0px; width: 100%; z-index: 1000; position: absolute } .need-purchase { } .line-sperator { width: 100%; position: relative } .line-sperator .lock-img-div { position: absolute; top: -20px; left: 50%; margin-left: -35px; width: 70px; background: #fff; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center } .header-item .line-sperator { width: 100%; border-bottom: 1px solid #EDEDED; position: relative } .header-item .line-sperator .lock-img-div { position: absolute; top: -20px; left: 50%; margin-left: -35px; width: 70px; background: #fff } .header-item .line-sperator .lock-img-div .lock-img { width: 20px; height: 32px } .body-item .tip-one { margin-top: 19px; font-size: 14px; color: #FF7055; line-height: 23px; text-align: center } .login-partial { position: relative; text-align: center } .hide_box { z-index: 999; filter: alpha(opacity=20); background: #000; opacity: 0.2; -moz-opacity: 0.2; left: 0; top: 0; height: 99%; width: 100%; position: fixed; display: none } .shang_box { width: 340px; height: auto; padding: 20px 20px 40px; background-color: #fff; border-radius: 10px; position: absolute; z-index: 1000; left: 210px; bottom: 100px; display: none; box-shadow: 0 3px 14px 0 rgba(199,209,215,.4) } .shang_box:after, .shang_box:before { content: ” “; display: block; position: absolute; left: 160px; width: 0; height: 0 } .shang_box:after { bottom: -8px; border-top: 8px solid #fff; border-left: 8px solid transparent; border-right: 8px solid transparent } .shang_box:before { bottom: -9px; border-top: 8px solid #eaeeef; border-left: 8px solid transparent; border-right: 8px solid transparent } .shang_box img { border: none; border-width: 0 } .dashang { position: relative; margin: 40px auto 0; height: 44px; width: 124px; font-size: 16px; box-shadow: 0 10px 20px rgba(255,96,96,.4); border-radius: 22px; background: #ee2222; color: #fff; transition: all 0.3s; outline: none } button:focus { outline: none !important } .dashang:hover { opacity: 0.8; padding: 8px 15px; font-size: 18px } .dashang-text { margin-top: 10px; opacity: .5; display: block; text-align: center; line-height: 30px; font-size: 14px; color: #303030 } .shang_close { float: right; display: inline-block } .shang_logo { display: block; text-align: center; margin: 20px auto } .shang_tit { width: 100%; height: 65px; text-align: center; line-height: 66px; color: #a3a3a3; font-size: 16px; padding-top: 15px } .shang_tit p { color: #27282d; text-align: center; font-size: 16px; margin-left: 20px } .shang_payimg { width: 160px; border: 6px solid #fff; margin: 0 auto; border-radius: 3px; height: 160px } .shang_payimg img { display: block; text-align: center; width: 148px; height: 148px } .shang_paytxt { font-size: 14px; line-height: 20px; color: #27282d; margin: 10px 0 } .shang_info { clear: both } .shang_info { color: #C3C3C3; text-align: center; font-size: 12px; text-decoration: none; line-height: 2em } .success-contact { position: relative; width: 100% text-align: center; } .cbtn { margin-top: 1rem; font-size: .875rem; –tw-text-opacity: 1; color: rgb(141 148 153 / var(–tw-text-opacity)); opacity: 0.75; } .cbtn:focus { outline: 2px solid transparent; outline-offset: 2px; } .contact-wrapper { position: absolute; left: 0px; bottom: 2.25rem; font-size: .815rem; } .contact-wrapper_info { position: relative; background-color: #fff; padding: 1rem 0 0 0; line-height: 1.5rem; color: #71787e; } span.text-orange-400 { color: #f59e0b; } .contact-wxcode { width: 140px; height: 140px; margin: 1.5rem auto 0; }