Loading...
dotfiles
Plaque
default-project
dotfiles
Create New Project
dotfiles
Plaque
default-project
dotfiles
Create New Project
/
Read-Only
Read-Only Mode
Visitor Mode
readonly-visitor
Read-only mode. You can browse and navigate but editing is disabled. Sign up for full access.
2 CPU
8 GB
1 hour
Sign Up (Free)
Sign In
End Visitor Session
Sign in
Sign up
Toggle Theme
Server Status
Keyboard Shortcuts
Read-Only Mode
Workspace
Chat
Console
Files
Profile
Settings
Sign Out
SciTeX
dotfiles
Ask anything about Scientific Research
Write
Analyze
Code
Literature
Console
Console
Chat
Ask anything about Scientific Research.
I can take actions: stats, plots, literature, and your current work.
LLM Model
STT Model
MCP Tools
--
Loading...
MCP Settings
AI Providers
Claude Code Auto-Accept Mode
Interval
1s (fast)
1.5s
2s
3s (slow)
Safety
Conservative (read-only)
Normal (most commands)
Aggressive (all commands)
Auto-Response Commands
Waiting
Y/N
1 (Allow)
2 (Deny)
Y/Y/N
1 (Allow once)
2 (Allow always)
3 (Deny)
Agent Sources
Loading...
Files
readonly-visitor/dotfiles
Recent
Viewer
Viewer
No file selected
Open a file from the Files tab to view it here
readonly-visitor
/
Plaque
/
scitex
/
writer
/
scripts
/
shell
/
modules
/
png2tif_all.sh
Edit png2tif_all.sh
#!/bin/bash # -*- coding: utf-8 -*- # Timestamp: "2025-09-27 00:29:33 (ywatanabe)" # File: ./paper/scripts/shell/modules/png2tif_all.sh ORIG_DIR="$(pwd)" THIS_DIR="$(cd $(dirname ${BASH_SOURCE[0]}) && pwd)" LOG_PATH="$THIS_DIR/.$(basename $0).log" echo >"$LOG_PATH" GIT_ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" GRAY='\033[0;90m' GREEN='\033[0;32m' YELLOW='\033[0;33m' RED='\033[0;31m' NC='\033[0m' # No Color echo_info() { echo -e "${GRAY}INFO: $1${NC}"; } echo_success() { echo -e "${GREEN}SUCC: $1${NC}"; } echo_warning() { echo -e "${YELLOW}WARN: $1${NC}"; } echo_error() { echo -e "${RED}ERRO: $1${NC}"; } echo_header() { echo_info "=== $1 ==="; } # --------------------------------------- # Configurations source ./config/load_config.sh $SCITEX_WRITER_DOC_TYPE # Source the 00_shared command module source "$(dirname ${BASH_SOURCE[0]})/command_switching.src" # Logging touch "$LOG_PATH" >/dev/null 2>&1 echo echo_info "Running ${BASH_SOURCE[0]}..." png2tif_all() { # Get convert command from 00_shared module local convert_cmd=$(get_cmd_convert "$ORIG_DIR") if [ -z "$convert_cmd" ]; then echo_error "No ImageMagick installation found (native, module, or container)" return 1 fi find "$SCITEX_WRITER_FIGURE_CAPTION_MEDIA_DIR" -maxdepth 1 \ -name '.*.png' | parallel --no-notice --silent \ 'in={}; out={.}.tif '"$convert_cmd"' -density 600 -units PixelsPerInch "$in" "$out" echo " TIFF {#}/'"$(wc -l <<<"$(find "$SCITEX_WRITER_FIGURE_CAPTION_MEDIA_DIR" -maxdepth 1 -name '.*.png')")"' -> $out"' } png2tif_all 2>&1 | tee -a "$LOG_PATH" # EOF