{"action":"created","issue":{"url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/1287","repository_url":"https://api.github.com/repos/spatie/laravel-medialibrary","labels_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/1287/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/1287/comments","events_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/1287/events","html_url":"https://github.com/spatie/laravel-medialibrary/issues/1287","id":374740943,"node_id":"MDU6SXNzdWUzNzQ3NDA5NDM=","number":1287,"title":"When generating images, \"laravel-medialibrary\" cuts off part of the characters of the file name to the first \"-\" in the Russian file name","user":{"login":"fomvasss","id":19834478,"node_id":"MDQ6VXNlcjE5ODM0NDc4","avatar_url":"https://avatars3.githubusercontent.com/u/19834478?v=4","gravatar_id":"","url":"https://api.github.com/users/fomvasss","html_url":"https://github.com/fomvasss","followers_url":"https://api.github.com/users/fomvasss/followers","following_url":"https://api.github.com/users/fomvasss/following{/other_user}","gists_url":"https://api.github.com/users/fomvasss/gists{/gist_id}","starred_url":"https://api.github.com/users/fomvasss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fomvasss/subscriptions","organizations_url":"https://api.github.com/users/fomvasss/orgs","repos_url":"https://api.github.com/users/fomvasss/repos","events_url":"https://api.github.com/users/fomvasss/events{/privacy}","received_events_url":"https://api.github.com/users/fomvasss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-28T10:55:40Z","updated_at":"2019-01-03T17:41:49Z","closed_at":null,"author_association":"NONE","body":"I use `\"spatie/laravel-medialibrary\": \"^7.0.0\"`\r\nWhen generating (Save new OR Regenerating) images, \"laravel-medialibrary\" cuts off part of the characters of the file name to the first \"-\" in the Russian file name:\r\n```\r\n951\r\n│   ├── conversions\r\n│   │   ├── -min-big.jpg\r\n│   │   ├── -min-list.jpg\r\n│   │   ├── -min-preset.jpg\r\n│   │   ├── -min-preview.jpg\r\n│   │   ├── -min-prev_seen.jpg\r\n│   │   ├── -min-table.jpg\r\n│   │   └── -min-thumb.jpg\r\n│   └── кровать-min.jpg\r\n└── 954\r\n    ├── conversions\r\n    │   ├── life_кровать-шкаф-min-big.jpg\r\n    │   ├── life_кровать-шкаф-min-list.jpg\r\n    │   ├── life_кровать-шкаф-min-preset.jpg\r\n    │   ├── life_кровать-шкаф-min-preview.jpg\r\n    │   ├── life_кровать-шкаф-min-prev_seen.jpg\r\n    │   ├── life_кровать-шкаф-min-table.jpg\r\n    │   └── life_кровать-шкаф-min-thumb.jpg\r\n    └── life_кровать-шкаф-min.jpg\r\n```\r\nhttps://i.imgur.com/aKQFP4G.jpg\r\n\r\nIf the file name without the \"-\" - cuts off completely Russian file name:\r\n```939\r\n│   ├── conversions\r\n│   │   ├── -big.jpg\r\n│   │   ├── -list.jpg\r\n│   │   ├── -preset.jpg\r\n│   │   ├── -preview.jpg\r\n│   │   ├── -prev_seen.jpg\r\n│   │   ├── -table.jpg\r\n│   │   └── -thumb.jpg\r\n│   └── Зеркало.jpg\r\n```\r\nhttps://i.imgur.com/CPWoZu8.jpg\r\n\r\nIn ny model (App/Models/Product):\r\n```\r\npublic function registerMediaConversions(Media $media = null)\r\n    {\r\n        $this->addMediaConversion('preview')\r\n            ->crop('crop-center', 30, 30);\r\n\r\n        $this->addMediaConversion('thumb')\r\n            ->crop('crop-center', 50, 50);\r\n\r\n        $this->addMediaConversion('prev_seen')\r\n            ->fit('crop', 146, 122);\r\n\r\n        $this->addMediaConversion('list')\r\n            ->fit('crop', 528, 528);\r\n\r\n        $this->addMediaConversion('table')\r\n            ->fit('crop', 354, 354);\r\n\r\n        $this->addMediaConversion('preset')\r\n            ->fit('crop', 146, 146);\r\n\r\n        $big = $this->addMediaConversion('big')\r\n            ->fit('fill', 1248, 1248);\r\n    }\r\n```\r\nPhp version on server:\r\n```shell\r\nphp -v\r\nPHP 7.2.6 (cli) (built: Jun  5 2018 00:52:18) ( NTS )\r\n```\r\n\r\nWhy is it not possible to apply, for example \"str_slug ()\" (only without deleting the dot \".\"), For file names (with extension), while saving them?\r\nFor example: \"Это мой файл - тест.jpg\" -> \"eto-moy-fayl-test.jpg\""},"comment":{"url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/comments/451220207","html_url":"https://github.com/spatie/laravel-medialibrary/issues/1287#issuecomment-451220207","issue_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/1287","id":451220207,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTIyMDIwNw==","user":{"login":"freekmurze","id":483853,"node_id":"MDQ6VXNlcjQ4Mzg1Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/483853?v=4","gravatar_id":"","url":"https://api.github.com/users/freekmurze","html_url":"https://github.com/freekmurze","followers_url":"https://api.github.com/users/freekmurze/followers","following_url":"https://api.github.com/users/freekmurze/following{/other_user}","gists_url":"https://api.github.com/users/freekmurze/gists{/gist_id}","starred_url":"https://api.github.com/users/freekmurze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freekmurze/subscriptions","organizations_url":"https://api.github.com/users/freekmurze/orgs","repos_url":"https://api.github.com/users/freekmurze/repos","events_url":"https://api.github.com/users/freekmurze/events{/privacy}","received_events_url":"https://api.github.com/users/freekmurze/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T17:41:49Z","updated_at":"2019-01-03T17:41:49Z","author_association":"MEMBER","body":"I accept a PR that fixes this."}}
{"actor":{"display_login":"freekmurze"}}