Thumbnail
Rescan All Files

Developed by

Intermediate
Intermediate
Not Version 9 Ready Yet.
Thank you very much for developing!

eldios

Rescan All Files -  a Concrete CMS job to regenerate thumbnails

V9 and later: Rescan Files job became the part of core task. Thus I will not support this add-on for V9 but leave it on the marketplace for v8 versions.

This is a very simple job package to rescan all files in the file manager.

When you change the setting of the thumbnail type or create a new one, you have to rescan all files in the file manager to regenerate image thumbnails. It's really troublesome to go through the file manager to rescan every file. Therefore, I've created this super simple automated job for Concrete CMS to rescan all files in file manager to regenerate the thumbnails.

However, if the image(s) are too large, the server may run out of memory. Please be careful.

This add-on may be useless for most concrete5 users. But when you need it, you really need it to save your time. it's also a good practice to read this simple code to learn how automated job works, too.

日本語での説明もございます。下にスクロールしてください。

How to Install

  1. Download zip files from GitHub, or the Marketplace.
    1.  Download zip file from the marketplace or GitHub
      1. Download and unzip the zip file
      2. Make sure that folder name is "rescan_files_job"
      3. Upload the folder under the packages folder of concrete5.
      4. Log on to Concrete CMS site as admin who can install packages.
    2. Marketplace
      1. Log on to concrete5 site as admin who can install packages.
      2. Connect your site to the marketplace if you haven't done so by going to "Dashboard" - "Extend Concrete CMS" menu.
      3. Visit Concrete CMS Marketplace and check out this add-on and assign your Concrete CMS site
  2. Go to Dashboard, and then Extend Concrete
  3. Find "Rescan All Files" package in the list, and install it.

How to Run

  1. Go to Dashboard - System & Settings - Optimization - Automated Jobs
  2. Find a job named, "Rescan All Files" and click "Run".
  3. Now sit back and relax to finish rescanning all files. 

GitHub & Open Source

This project is on GitHub. This package is released under MIT License.

https://github.com/katzueno/rescan_files_job/

Credit

  • katz515 (Macareux Digital Inc. )
    • Macareux Digital. (formerly concrete5 Japan, inc.) has been helping a number Concrete CMS projects. Please feel free to contact us at any time for your project needs. We can work internationally.
      http://macareux.co.jp/
  • DJ Kazu (icon design)

 

日本語解説

V9 以降: Rescan Files は V9 の本体にタスクとして同梱されることになりました。そのため、V9 対応は行わない予定です。V8 以前のユーザーの皆様向けに残しております。

これは、 Concrete CMS のファイルマネージャーのサムネイルを一括で再生成するためのジョブです。

Concrete CMS のサムネイルタイプを追加したり、修正したりすると、サムネイルをすべて再生成する必要がありますが、ファイルマネージャーからちまちま実行するのは時間がかかるので、ジョブとして一括で実行できるよう、スクリプトを作成しました。

サーバーのメモリ設定と画像のサイズによっては処理しきれず、メモリーオーバーになる可能性があるので、大きすぎる画像ファイルのアップロードは控えてください。

このアドオンは、ほとんどの Concrete CMS ユーザーにとって無意味なアドオンですが、必要になったら時間がすごく節約できるアドオンです。また自動実行ジョブの仕組みを覚えるのにも役に立つと思います。

インストール方法

  1. GitHub やマーケットプレイから ZIP ファイルをダウンロードするか、マーケットプレイスからインストール
    1. GitHub か Concrete CMS マーケットプレイスからZIPファイルをダウンロードする方法
      1. ZIP ファイルを GitHub か、Concrete CMS Marketplace からダウンロードし解凍する。
      2. フォルダ名が「rescan_files_job」にきちんとなっているか確認。
      3. そのフォルダごと、Concrete CMS の packages フォルダの中にアップロード。
      4. パッケージをインストールできる権限を持ったユーザーで concrete5 にログイン。
    2. マーケットプレイスから
      1. 自分のサイトにパッケージがインストールできるユーザーとしてログイン。
      2. まだ Marketplace に接続していなければ、「管理画面」-「concrete5 を拡張」メニューからサイトを Concrete CMS マーケットプレイスに接続。
      3. Concrete CMS のマーケットプレイスページに訪問して、このアドオンをチェックアウトし、登録したサイトにアサイン (assign) する。
  2. 管理画面」に行き「Concrete を拡張」メニューをクリック。
  3. Rescan All Files」パッケージを探して、インストール。

使い方

  1. [管理画面] - [システムと設定] - [最適化] - [自動実行ジョブ] ページヘ
  2. リストの中から「Rescan All Files」を探して、「実行」ボタンを押す。
  3. しばらく待って、サムネイル再生成完了を待ちます。

GitHub & オープンソース

このパッケージは GitHub でも公開しています。ライセンスは MIT です。

https://github.com/katzueno/rescan_files_job/

クレジット

  • @katzueno (Macareux Digital, Inc.)
    • 株式会社マカルーデジタル (旧コンクリートファイブジャパン株式会社) では、企業・団体様の concrete5 サイト制作や制作会社様のプロジェクトのサポートを行っています。
      http://macareux.co.jp/
  • DJ Kazu (アイコンデザイン)
Current Version: 0.1.5
Fully Translatable: Yes
Needs External Libraries: No
Compatible 5.7.4.2+
License: MIT
Support Response: Replies to tickets every few days.
Support Hosted: On marketplace.concretecms.com
Needs extra server permissions: No
Needs Internet: No
Marketplace Tests:
Passed Automated Tests
Passed PRB Review