nextcloud / nextcloud/previewgenerator
ImagickException: negative or zero image size `' @ error/image.c/SetImageExtent/2649
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 520
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
Hello, i keep getting this error, it's usually at the time i edit my hugo site and sync the files back to nextcloud.
It mentions something about SVG, (which is already enabled in my config.php).
It usually appears multiple times each time i sync those files.
Anything i can try or provide you?
The full error:
Error | core | ImagickException: negative or zero image size `' @ error/image.c/SetImageExtent/2649/config/www/nextcloud/lib/private/Preview/SVG.php - line 61:Imagick->readimageblob()/config/www/nextcloud/lib/private/Preview/GeneratorHelper.php - line 63:OC\Preview\SVG->getThumbnail()/config/www/nextcloud/lib/private/Preview/Generator.php - line 244:OC\Preview\GeneratorHelper->getThumbnail()/config/www/nextcloud/lib/private/Preview/Generator.php - line 140:OC\Preview\Generator->getMaxPreview()/config/www/nextcloud/lib/private/PreviewManager.php - line 205:OC\Preview\Generator->generatePreviews()/config/www/nextcloud/apps/previewgenerator/lib/Command/PreGenerate.php - line 217:OC\PreviewManager->generatePreviews()/config/www/nextcloud/apps/previewgenerator/lib/Command/PreGenerate.php - line 195:OCA\PreviewGenerator\Command\PreGenerate->processFile()/config/www/nextcloud/apps/previewgenerator/lib/Command/PreGenerate.php - line 163:OCA\PreviewGenerator\Command\PreGenerate->processRow()/config/www/nextcloud/apps/previewgenerator/lib/Command/PreGenerate.php - line 131:OCA\PreviewGenerator\Command\PreGenerate->startProcessing()/config/www/nextcloud/apps/bookmarks/vendor/symfony/console/Command/Command.php - line 255:OCA\PreviewGenerator\Command\PreGenerate->execute()/config/www/nextcloud/apps/bookmarks/vendor/symfony/console/Application.php - line 1009:Symfony\Component\Console\Command\Command->run()/config/www/nextcloud/apps/bookmarks/vendor/symfony/console/Application.php - line 273:Symfony\Component\Console\Application->doRunCommand()/config/www/nextcloud/apps/bookmarks/vendor/symfony/console/Application.php - line 149:Symfony\Component\Console\Application->doRun()/config/www/nextcloud/lib/private/Console/Application.php - line 215:Symfony\Component\Console\Application->run()/config/www/nextcloud/console.php - line 100:OC\Console\Application->run()/config/www/nextcloud/occ - line 11:require_once("/config/www ... p")
-- | -- | --
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported stack trace at lib/private/Preview/SVG.php line 61, then follow previewgenerator/lib/Command/PreGenerate.php lines 131-217. Reproduce the failure using the Hugo site’s SVG files during synchronization and identify which input triggers the zero or negative image size. Done means the failing SVG case and the required fix or additional diagnostic information are established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100