generate_thumbs and encode_placeholders #3519
Replies: 2 comments 1 reply
-
|
The detection of missing placeholder etc is a bit buggy, I need to double check it. :(
Check the maintenance page, most of those commands are also available in one click :) |
Beta Was this translation helpful? Give feedback.
-
|
On the Maintenance Page, it says:
Clicking it produces the green SUCCESS! message, but refreshes to still say the same 1 placeholder message. However, In looking at the Diagnostic Page, it shows:
Seems they are not in sync :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Lychee version
v6.6.14
Did you check the latest Lychee version?
No, I am not using the latest version
Which PHP version are you using?
PHP 8.3
Detailed description of the problem
Message in the Diagnostics:
I ran the following script:
`$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();
// Correct named arguments for the Artisan command
$exitCode = $kernel->call('lychee:generate_thumbs', [
'type' => 'placeholder',
]);`
Which returned this:
Will attempt to generate up to 100 placeholder images with a timeout of 600 seconds...
0/1 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0% placeholder (16x16) for nemo.webp created.
1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
I was then prompted to "php artisan lychee:encode_placeholders 1", so I ran this:
`$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();
$kernel->call('lychee:encode_placeholders', [
0 => '1',
]);`
Everything ran perfectly.
Went back to Diagnostics and it says:
Maybe I'm doing something wrong, but the output indicates all is running as expected.
I do not have access to the command line so I'm running the script in a php file.
Steps to reproduce the issue
See above on process followed.
Diagnostics [REQUIRED]
Self-diagnosis info Full directory permission check is disabled warning lossless_optimization set to 1 but cwebp not found! warning lossless_optimization set to 1 but gifsicle not found! warning lossless_optimization set to 1 but jpegoptim not found! warning lossless_optimization set to 1 but optipng not found! warning lossless_optimization set to 1 but pngquant not found! warning lossless_optimization set to 1 but svgo not found! info Latest version of PHP is 8.4 info Found 1 placeholders that could be generated. You can usephp artisan lychee:generate_thumbs placeholder 1` to generate them.Info
Lychee SE Version (release): 6.6.14
DB Version: 6.6.14
Docker: false
composer install: --no-dev
APP_ENV: production
APP_DEBUG: true
APP_URL: set
APP_DIR: default
LOG_VIEWER_ENABLED: false
System: Linux
PHP Version: 8.3.20
PHP User agent: Lychee/6 (https://lycheeorg.dev/)
Timezone: America/Chicago
Max uploaded file size: 200M
Max post size: 200M
Chunk size: 25.60 MB
Max execution time: 200
MySQL Version: 8.4.5
exec() Available: yes
Imagick Available: 1
Imagick Enabled: 1
Imagick Version: 1693
GD Version: bundled (2.1.0 compatible)
Number of foreign key: 14 found.
Space
Configuration
version: 060614
check_for_updates: 1
sorting_photos_col: taken_at
sorting_photos_order: ASC
sorting_albums_col: max_taken_at
sorting_albums_order: ASC
imagick: 1
skip_duplicates: 0
small_max_width: 0
small_max_height: 360
medium_max_width: 1920
medium_max_height: 1080
lang: en
image_overlay_type: desc
default_license: reserved
compression_quality: 90
grants_full_photo_access: 1
delete_imported: 0
mod_frame_enabled: 1
mod_frame_refresh: 10
thumb_2x: 1
small_2x: 1
medium_2x: 1
landing_page_enable: 1
force_migration_in_production: 0
search_public: 1
hide_version_number: 1
recent_age: 7
grants_download: 1
photos_wraparound: 1
map_display: 1
zip64: 1
map_display_public: 0
map_provider: OpenStreetMap.org
map_include_subalbums: 0
update_check_every_days: 3
has_exiftool: 1
share_button_visible: 1
import_via_symlink: 0
has_ffmpeg: 1
location_decoding: 0
location_decoding_timeout: 30
location_show: 1
location_show_public: 0
rss_enable: 1
rss_recent_days: 7
rss_max_items: 100
prefer_available_xmp_metadata: 0
editor_enabled: 1
lossless_optimization: 1
local_takestamp_video_formats: .avi|.mov
log_max_num_line: 1000
unlock_password_photos_with_url_param: 0
nsfw_visible: 1
nsfw_blur: 1
nsfw_warning: 1
nsfw_warning_admin: 0
nsfw_banner_override:
map_display_direction: 1
album_subtitle_type: oldstyle
upload_processing_limit: 4
new_photos_notification: 0
zip_deflate_level: 6
default_album_protection: 2
album_decoration: layers
album_decoration_orientation: row
allow_username_change: 1
auto_fix_orientation: 1
use_job_queues: 0
random_album_id: PUBLIC UPLOADS
use_last_modified_date_when_no_exif_date: 1
layout: masonry
date_format_photo_thumb: M j, Y, g:i:s A e
date_format_photo_overlay: M j, Y, g:i:s A e
date_format_sidebar_uploaded: M j, Y, g:i:s A e
date_format_sidebar_taken_at: M j, Y, g:i:s A e
date_format_hero_min_max: F Y
date_format_hero_created_at: M j, Y, g:i:s A T
date_format_album_thumb: M Y
upload_chunk_size: 0
nsfw_banner_blur_backdrop: 0
search_pagination_limit: 300
search_minimum_length_required: 4
photo_layout_justified_row_height: 320
photo_layout_masonry_column_width: 300
photo_layout_grid_column_width: 250
photo_layout_square_column_width: 200
photo_layout_gap: 12
display_thumb_album_overlay: always
display_thumb_photo_overlay: hover
default_album_thumb_aspect_ratio: 1/1
use_album_compact_header: 0
back_button_enabled: 1
back_button_text: Return to Home
SA_random_thumbs: 0
login_required: 0
enable_unsorted: 1
enable_starred: 1
enable_recent: 1
enable_on_this_day: 0
login_required_root_only: 1
dark_mode_enabled: 1
low_quality_image_placeholder: 1
show_keybinding_help_popup: 0
show_keybinding_help_button: 1
disable_se_call_for_actions: 1
enable_se_preview: 1
slideshow_timeout: 5
keep_original_untouched: 1
timeline_photos_enabled: 1
timeline_photos_public: 0
timeline_photos_granularity: day
timeline_photos_order: taken_at
timeline_photos_layout: square
timeline_photos_pagination_limit: 200
timeline_albums_enabled: 1
timeline_albums_public: 0
timeline_albums_granularity: year
timeline_left_border_enabled: 1
timeline_photo_date_format_year: Y
timeline_photo_date_format_month: M Y
timeline_photo_date_format_day: j M Y
timeline_photo_date_format_hour: g:i
timeline_album_date_format_year: Y
timeline_album_date_format_month: M Y
timeline_album_date_format_day: j M
hide_nsfw_in_smart_albums: 1
hide_nsfw_in_frame: 1
hide_nsfw_in_map: 1
hide_nsfw_in_search: 1
search_photos_layout: square
hide_nsfw_in_rss: 1
hide_nsfw_in_timeline: 1
number_albums_per_row_mobile: 3
cache_enabled: 0
cache_ttl: 86400
low_number_of_shoots_per_day: 10
medium_number_of_shoots_per_day: 50
high_number_of_shoots_per_day: 100
maintenance_processing_limit: 5000
disable_recursive_permission_check: 1
exif_disabled_for_all: 0
file_name_hidden: 0
default_old_settings: 0
default_expert_settings: 1
default_all_settings: 0
client_side_favourite_enabled: 1
disable_thumb_download: 1
disable_thumb2x_download: 1
disable_small_download: 0
disable_small2x_download: 0
disable_medium_download: 0
disable_medium2x_download: 0
temporary_image_link_enabled: 0
temporary_image_link_when_logged_in: 0
temporary_image_link_when_admin: 1
temporary_image_link_life_in_seconds: 86400
secure_image_link_enabled: 0
SA_override_visibility: 0
TA_override_visibility: 0
enable_colour_extractions: 1
colour_extraction_driver: farzai
home_page_default: gallery
gallery_header_enabled: 1
gallery_header_logged_in_enabled: 1
gallery_header: abcimg-logo.jpg
gallery_header_bar_transparent: 1
gallery_header_bar_gradient: 1
import_via_url_forbidden_localhost: 1
import_via_url_forbidden_local_ip: 1
import_via_url_require_https: 1
import_via_url_forbidden_ports: 1
`
Browser & System [REQUIRED]
Chrome Version 137.0.7151.121 (Official Build) (64-bit)
Windows 10 Enterprise
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions