<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # Uploads sanitize Rake tasks > 原文:[https://docs.gitlab.com/ee/administration/raketasks/uploads/sanitize.html](https://docs.gitlab.com/ee/administration/raketasks/uploads/sanitize.html) * [Requirements](#requirements) * [Remove EXIF data from existing uploads](#remove-exif-data-from-existing-uploads) # Uploads sanitize Rake tasks[](#uploads-sanitize-rake-tasks-core-only "Permalink") 從 GitLab 11.9 開始,EXIF 數據會自動從 JPG 或 TIFF 圖像上傳中刪除. EXIF 數據可能包含敏感信息(例如 GPS 位置),因此您可以從上傳到 GitLab 早期版本的現有圖像中刪除 EXIF 數據. ## Requirements[](#requirements "Permalink") 要運行此 Rake 任務,需要在系統上安裝`exiftool` . 如果安裝了 GitLab: * 使用 Omnibus 軟件包,您已經準備就緒. * 從源代碼中,確保已安裝`exiftool` : ``` # Debian/Ubuntu sudo apt-get install libimage-exiftool-perl # RHEL/CentOS sudo yum install perl-Image-ExifTool ``` ## Remove EXIF data from existing uploads[](#remove-exif-data-from-existing-uploads "Permalink") 要從現有的上載中刪除 EXIF 數據,請運行以下命令: ``` sudo RAILS_ENV=production -u git -H bundle exec rake gitlab:uploads:sanitize:remove_exif ``` 默認情況下,此命令以"空運行"模式運行,并且不會刪除 EXIF 數據. 它可用于檢查是否應清理圖像(以及多少). Rake 任務接受以下參數. | Parameter | Type | Description | | --- | --- | --- | | `start_id` | integer | 僅處理 ID 相同或更大的上載 | | `stop_id` | integer | 僅處理 ID 等于或小于 ID 的上傳 | | `dry_run` | boolean | 不要刪除 EXIF 數據,僅檢查是否存在 EXIF 數據. 默認為`true` | | `sleep_time` | float | 處理每個圖像后暫停幾秒鐘. 默認為 0.3 秒 | | `uploader` | string | 僅對給定上傳者的上傳運行清理: `FileUploader` , `PersonalFileUploader`或`NamespaceFileUploader` | | `since` | date | 僅對早于給定日期的上傳文件進行清理. 例如`2019-05-01` | 如果上傳的文件過多,則可以通過以下方法加快清理速度: * 將`sleep_time`設置為較低的值. * 并行運行多個 Rake 任務,每個任務都有單獨的上傳 ID 范圍(通過設置`start_id`和`stop_id` ). 要從所有上傳中刪除 EXIF 數據,請使用: ``` sudo RAILS_ENV=production -u git -H bundle exec rake gitlab:uploads:sanitize:remove_exif[,,false,] 2>&1 | tee exif.log ``` To remove EXIF data on uploads with an ID between 100 and 5000 and pause for 0.1 second after each file, use: ``` sudo RAILS_ENV=production -u git -H bundle exec rake gitlab:uploads:sanitize:remove_exif[100,5000,false,0.1] 2>&1 | tee exif.log ``` 輸出將被寫入`exif.log`文件,因為它可能很長. 如果上載的清理失敗,則 Rake 任務的輸出中將出現一條錯誤消息. 典型的原因包括文件在存儲中丟失或不是有效的映像. [報告](https://gitlab.com/gitlab-org/gitlab/-/issues/new)所有問題,并在問題標題中使用前綴" EXIF",以及錯誤輸出和(如果可能)圖像.
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看